222 |
|
|
223 |
|
|
224 |
int diff = Math.abs( savedcount - count); |
int diff = Math.abs( savedcount - count); |
225 |
|
String msg = null; |
226 |
if (count > savedcount) { |
if (count > savedcount) { |
227 |
String msg = player.getName() + " added " + diff + " units of " + item + " to " + owner + "'s chest"; |
msg = player.getName() + " added " + diff + " units of " + item + " to " + owner + "'s chest"; |
|
plugin.getLogger().info(msg); |
|
|
plugin.getMessageWrapper().sendMessage(owner, msg); |
|
228 |
} |
} |
229 |
if (count < savedcount) { |
if (count < savedcount) { |
230 |
String msg = player.getName() + " removed " + diff + " units of " + item + " from " + owner + "'s chest"; |
msg = player.getName() + " removed " + diff + " units of " + item + " from " + owner + "'s chest"; |
231 |
|
} |
232 |
|
|
233 |
|
if (msg != null) { |
234 |
plugin.getLogger().info(msg); |
plugin.getLogger().info(msg); |
235 |
plugin.getMessageWrapper().sendMessage(owner, msg); |
plugin.getMessageWrapper().sendMessage(owner, msg); |
236 |
} |
} |