mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-09-26 04:42:36 +02:00
Changed '/map_render' to '/map render'.
This commit is contained in:
parent
bcb25468db
commit
68412ae27d
@ -15,9 +15,13 @@ public class DynmapPlayerListener extends PlayerListener {
|
||||
public void onPlayerCommand(PlayerChatEvent event) {
|
||||
String[] split = event.getMessage().split(" ");
|
||||
Player player = event.getPlayer();
|
||||
if (split[0].equalsIgnoreCase("/map_render")) {
|
||||
mgr.touch(player.getLocation().getBlockX(), player.getLocation().getBlockY(), player.getLocation().getBlockZ());
|
||||
event.setCancelled(true);
|
||||
if (split[0].equalsIgnoreCase("/map")) {
|
||||
if (split.length > 1) {
|
||||
if (split[1].equals("render")) {
|
||||
mgr.touch(player.getLocation().getBlockX(), player.getLocation().getBlockY(), player.getLocation().getBlockZ());
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user