Changed '/map_render' to '/map render'.
This commit is contained in:
parent
bcb25468db
commit
68412ae27d
1 changed files with 7 additions and 3 deletions
|
|
@ -15,9 +15,13 @@ public class DynmapPlayerListener extends PlayerListener {
|
||||||
public void onPlayerCommand(PlayerChatEvent event) {
|
public void onPlayerCommand(PlayerChatEvent event) {
|
||||||
String[] split = event.getMessage().split(" ");
|
String[] split = event.getMessage().split(" ");
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
if (split[0].equalsIgnoreCase("/map_render")) {
|
if (split[0].equalsIgnoreCase("/map")) {
|
||||||
mgr.touch(player.getLocation().getBlockX(), player.getLocation().getBlockY(), player.getLocation().getBlockZ());
|
if (split.length > 1) {
|
||||||
event.setCancelled(true);
|
if (split[1].equals("render")) {
|
||||||
|
mgr.touch(player.getLocation().getBlockX(), player.getLocation().getBlockY(), player.getLocation().getBlockZ());
|
||||||
|
event.setCancelled(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue