Skip to content

Commit 2a82674

Browse files
committed
remove/edit some debugLogs
1 parent 2ca0ec7 commit 2a82674

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

src/main/java/org/maxgamer/quickshop/listener/BlockListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void onBreak(BlockBreakEvent e) {
145145
if (getPlugin().getConfiguration().getBoolean("shop.allow-owner-break-shop-sign") && p.getUniqueId().equals(shop.getOwner())) {
146146
return;
147147
}
148-
Util.debugLog("Cannot break the sign.");
148+
Util.debugLog("Player cannot break the shop infomation sign.");
149149
e.setCancelled(true);
150150
}
151151
}

src/main/java/org/maxgamer/quickshop/listener/ChatListener.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ public ChatListener(QuickShop plugin) {
3838

3939
@EventHandler(priority = EventPriority.LOWEST)
4040
public void onChat(AsyncPlayerChatEvent e) {
41-
4241
if (e.isCancelled() && plugin.getConfiguration().getBoolean("shop.ignore-cancel-chat-event")) {
43-
Util.debugLog("Ignored a chat event (Canceled by another plugin.)");
42+
Util.debugLog("Ignored a chat event (Cancelled by another plugin, you can force process by turn on ignore-cancel-chat-event)");
4443
return;
4544
}
4645

src/main/java/org/maxgamer/quickshop/listener/PlayerListener.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,11 +360,10 @@ public void onMove(PlayerMoveEvent e) {
360360
if (loc1.getWorld() != loc2.getWorld() || loc1.distanceSquared(loc2) > 25) {
361361
if (info.getAction() == ShopAction.BUY) {
362362
plugin.text().of(p, "shop-purchase-cancelled").send();
363-
Util.debugLog(p.getName() + " too far with the shop location.");
364363
} else if (info.getAction() == ShopAction.CREATE) {
365364
plugin.text().of(p, "shop-creation-cancelled").send();
366-
Util.debugLog(p.getName() + " too far with the shop location.");
367365
}
366+
Util.debugLog(p.getName() + " too far with the shop location.");
368367
plugin.getShopManager().getActions().remove(p.getUniqueId());
369368
}
370369
}

src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ public ContainerShop(
166166
if (item.hasItemMeta()) {
167167
ItemMeta meta = item.getItemMeta();
168168
if (meta.hasDisplayName()) {
169-
Util.debugLog("Shop item display is: " + meta.getDisplayName());
170169
//https://hub.spigotmc.org/jira/browse/SPIGOT-5964
171170
if (meta.getDisplayName().matches("\\{.*}")) {
172171
meta.setDisplayName(meta.getDisplayName());

0 commit comments

Comments
 (0)