Improvements in SubCommand_CleanGhost.java (#1022)

* Questions in SubCommand_CleanGhost.java

Can you please explain "Starting checking the shop be ghost, all does not exist shop will be removed..." a little better...not sure what it means... (line 57)
What do you mean by "posting" (to main server thread)? (line 110)
What exactly is meant by "disallow create the shop"? (line 117) (Maybe that its not allowed to create a shop in this location?)

* Improved SubCommand_CleanGhost.java
This commit is contained in:
Chris authored and GitHub committed 2021-06-12 14:53:22 +08:00
1 parent 4ad63e3bb7
commit 4dea54ebd0
1 file changed
+2 -2
@@ -54,7 +54,7 @@ public class SubCommand_CleanGhost implements CommandProcesser {
MsgUtil.sendMessage(sender,
ChatColor.GREEN
+ "Starting checking the shop be ghost, all does not exist shop will be removed...");
+ "Starting to check for ghost shops (missing container blocks). All non-existing shops will be removed...");
plugin.getServer().getScheduler().runTaskAsynchronously(plugin, () -> {
MsgUtil.sendMessage(sender, ChatColor.GREEN + "Starting async thread, please wait...");
@@ -114,7 +114,7 @@ public class SubCommand_CleanGhost implements CommandProcesser {
ChatColor.YELLOW
+ "Deleting shop "
+ shop
+ " because the target location is nolonger a shop or disallow create the shop.");
+ " because it is no longer on the target location or it is not allowed to create shops in this location.");
shop.delete();
}
}); // Post to server main thread to check.