Fix subcommands
This commit is contained in:
parent
309c4a0516
commit
b038477cec
|
|
@ -8,7 +8,7 @@ import org.bukkit.entity.Player;
|
|||
public class IslandAccept extends PlayerSubCommand {
|
||||
|
||||
public IslandAccept(CometSkyBlockPlugin plugin) {
|
||||
super(plugin, "help");
|
||||
super(plugin, "accept");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import org.bukkit.entity.Player;
|
|||
public class IslandConfirm extends PlayerSubCommand {
|
||||
|
||||
public IslandConfirm(CometSkyBlockPlugin plugin) {
|
||||
super(plugin, "help");
|
||||
super(plugin, "confirm");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import org.bukkit.entity.Player;
|
|||
public class IslandInvite extends PlayerSubCommand {
|
||||
|
||||
public IslandInvite(CometSkyBlockPlugin plugin) {
|
||||
super(plugin, "help");
|
||||
super(plugin, "invite");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import org.bukkit.entity.Player;
|
|||
public class IslandKick extends PlayerSubCommand {
|
||||
|
||||
public IslandKick(CometSkyBlockPlugin plugin) {
|
||||
super(plugin, "help");
|
||||
super(plugin, "kick");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import org.bukkit.entity.Player;
|
|||
public class IslandLeave extends PlayerSubCommand {
|
||||
|
||||
public IslandLeave(CometSkyBlockPlugin plugin) {
|
||||
super(plugin, "help");
|
||||
super(plugin, "leave");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import org.bukkit.entity.Player;
|
|||
public class IslandLevel extends PlayerSubCommand {
|
||||
|
||||
public IslandLevel(CometSkyBlockPlugin plugin) {
|
||||
super(plugin, "help");
|
||||
super(plugin, "level");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import org.bukkit.entity.Player;
|
|||
public class IslandMembers extends PlayerSubCommand {
|
||||
|
||||
public IslandMembers(CometSkyBlockPlugin plugin) {
|
||||
super(plugin, "help");
|
||||
super(plugin, "members");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import org.bukkit.entity.Player;
|
|||
public class IslandOptions extends PlayerSubCommand {
|
||||
|
||||
public IslandOptions(CometSkyBlockPlugin plugin) {
|
||||
super(plugin, "help");
|
||||
super(plugin, "options");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import org.bukkit.entity.Player;
|
|||
public class IslandRestart extends PlayerSubCommand {
|
||||
|
||||
public IslandRestart(CometSkyBlockPlugin plugin) {
|
||||
super(plugin, "help");
|
||||
super(plugin, "restart");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import org.bukkit.entity.Player;
|
|||
public class IslandSetOwner extends PlayerSubCommand {
|
||||
|
||||
public IslandSetOwner(CometSkyBlockPlugin plugin) {
|
||||
super(plugin, "help");
|
||||
super(plugin, "setowner");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import org.bukkit.entity.Player;
|
|||
public class IslandSethome extends PlayerSubCommand {
|
||||
|
||||
public IslandSethome(CometSkyBlockPlugin plugin) {
|
||||
super(plugin, "help");
|
||||
super(plugin, "sethome");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import org.bukkit.entity.Player;
|
|||
public class IslandTop extends PlayerSubCommand {
|
||||
|
||||
public IslandTop(CometSkyBlockPlugin plugin) {
|
||||
super(plugin, "help");
|
||||
super(plugin, "top");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import org.bukkit.entity.Player;
|
|||
public class IslandVisit extends PlayerSubCommand {
|
||||
|
||||
public IslandVisit(CometSkyBlockPlugin plugin) {
|
||||
super(plugin, "help");
|
||||
super(plugin, "visit");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public class BedListener implements Listener {
|
|||
}
|
||||
Player player = event.getPlayer();
|
||||
World world = player.getWorld();
|
||||
Island island = plugin.getIslandManager().getIsland(world);
|
||||
Island island = plugin.islandManager().getIsland(world);
|
||||
if (island == null) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user