Don't require MapParser in constructors of Teleport commands
This commit is contained in:
parent
069ee177eb
commit
ca9b1cb490
@ -12,9 +12,9 @@ public class BackCommand extends BaseCommand
|
|||||||
{
|
{
|
||||||
private TeleportManager _teleportManager;
|
private TeleportManager _teleportManager;
|
||||||
|
|
||||||
public BackCommand(MapParser plugin, TeleportManager teleportManager)
|
public BackCommand(TeleportManager teleportManager)
|
||||||
{
|
{
|
||||||
super(plugin, "back", "tpback");
|
super(teleportManager.getPlugin(), "back", "tpback");
|
||||||
|
|
||||||
_teleportManager = teleportManager;
|
_teleportManager = teleportManager;
|
||||||
}
|
}
|
||||||
|
@ -13,9 +13,9 @@ public class TeleportCommand extends BaseCommand
|
|||||||
{
|
{
|
||||||
private TeleportManager _teleportManager;
|
private TeleportManager _teleportManager;
|
||||||
|
|
||||||
public TeleportCommand(MapParser plugin, TeleportManager teleportManager)
|
public TeleportCommand(TeleportManager teleportManager)
|
||||||
{
|
{
|
||||||
super(plugin, "tp", "teleport");
|
super(teleportManager.getPlugin(), "tp", "teleport");
|
||||||
|
|
||||||
_teleportManager = teleportManager;
|
_teleportManager = teleportManager;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user