1
0
Files
mineplex-crepe/Plugins[Original]/Mineplex.MapParser/src/mineplex/mapparser/command/WorldsCommand.java

30 lines
553 B
Java
Raw Normal View History

2021-08-19 16:35:32 +07:00
package mineplex.mapparser.command;
import org.bukkit.World;
import org.bukkit.entity.Player;
import mineplex.mapparser.MapParser;
/**
* Created by Shaun on 8/15/2014.
*/
public class WorldsCommand extends BaseCommand
{
public WorldsCommand(MapParser plugin)
{
super(plugin, "worlds");
}
@Override
public boolean execute(Player player, String alias, String[] args)
{
message(player, "Listing Active Worlds;");
for (World world : getPlugin().getServer().getWorlds())
{
player.sendMessage(world.getName());
}
return true;
}
}