Render command now responds with a nice message.
This commit is contained in:
parent
f071e12524
commit
cbe562d33d
2 changed files with 7 additions and 3 deletions
|
|
@ -292,7 +292,8 @@ public class DynmapPlugin extends JavaPlugin {
|
|||
if (args.length > 0) {
|
||||
if (args[0].equals("render")) {
|
||||
if (sender instanceof Player) {
|
||||
mapManager.touch(((Player) sender).getLocation());
|
||||
int invalidates = mapManager.touch(((Player) sender).getLocation());
|
||||
sender.sendMessage("Queued " + invalidates + " tiles" + (invalidates == 0 ? " (world is not loaded?)" : "..."));
|
||||
return true;
|
||||
}
|
||||
} else if (args[0].equals("hide")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue