Remove redundant info message and variable in Info command

This commit is contained in:
sandtechnology committed 2021-08-11 02:48:21 +08:00
1 parent 7c6b1b7fcd
commit 9f3e2a9af6
1 file changed
+1 -10
@@ -39,13 +39,11 @@ public class SubCommand_Info implements CommandHandler<CommandSender> {
@Override
public void onCommand(@NotNull CommandSender sender, @NotNull String commandLabel, @NotNull String[] cmdArg) {
int buying, selling, doubles, chunks, worlds, doubleschests;
int buying, selling, chunks, worlds;
buying = 0;
selling = 0;
doubles = 0;
chunks = 0;
worlds = 0;
doubleschests = 0;
int nostock = 0;
for (Map<ShopChunk, Map<Location, Shop>> inWorld :
@@ -78,13 +76,6 @@ public class SubCommand_Info implements CommandHandler<CommandSender> {
+ " chunks spread over "
+ worlds
+ " worlds.");
MsgUtil.sendDirectMessage(sender,
ChatColor.GREEN
+ ""
+ doubles
+ " double shops. ("
+ doubleschests
+ " shops created on double chest.)");
MsgUtil.sendDirectMessage(sender,
ChatColor.GREEN
+ ""