Actually add Player as a field to the commands

This commit is contained in:
2022-02-03 22:01:30 -06:00
parent fe53f5c49f
commit 081a702c70
25 changed files with 81 additions and 50 deletions

View File

@ -17,12 +17,12 @@ public class FlatlandsCMD extends PlexCommand
{
@Override
public Component execute(CommandSender sender, String[] args)
public Component execute(CommandSender sender, Player playerSender, String[] args)
{
if (args.length == 0)
{
Location loc = new Location(Bukkit.getWorld("flatlands"), 0, 50, 0);
((Player)sender).teleportAsync(loc);
playerSender.teleportAsync(loc);
return tl("teleportedToWorld", "flatlands");
}
return null;