Don't require MapParser in constructors of Teleport commands

This commit is contained in:
Spencer 2017-12-30 17:06:14 -05:00 committed by Alexander Meech
parent 069ee177eb
commit ca9b1cb490
2 changed files with 4 additions and 4 deletions

View File

@ -12,9 +12,9 @@ public class BackCommand extends BaseCommand
{
private TeleportManager _teleportManager;
public BackCommand(MapParser plugin, TeleportManager teleportManager)
public BackCommand(TeleportManager teleportManager)
{
super(plugin, "back", "tpback");
super(teleportManager.getPlugin(), "back", "tpback");
_teleportManager = teleportManager;
}

View File

@ -13,9 +13,9 @@ public class TeleportCommand extends BaseCommand
{
private TeleportManager _teleportManager;
public TeleportCommand(MapParser plugin, TeleportManager teleportManager)
public TeleportCommand(TeleportManager teleportManager)
{
super(plugin, "tp", "teleport");
super(teleportManager.getPlugin(), "tp", "teleport");
_teleportManager = teleportManager;
}