305 |
int diff = Math.abs( savedcount - count); |
int diff = Math.abs( savedcount - count); |
306 |
String msg = null; |
String msg = null; |
307 |
if (count > savedcount) { |
if (count > savedcount) { |
308 |
msg = player.getName() + " added " + diff + " units of " + item + " to " + owner + "'s chest"; |
msg = player.getName() + " added " + diff + " units of " + item + " to " + owner.getName() + "'s chest"; |
309 |
} |
} |
310 |
if (count < savedcount) { |
if (count < savedcount) { |
311 |
msg = player.getName() + " removed " + diff + " units of " + item + " from " + owner + "'s chest"; |
msg = player.getName() + " removed " + diff + " units of " + item + " from " + owner.getName() + "'s chest"; |
312 |
} |
} |
313 |
|
|
314 |
if (msg != null) { |
if (msg != null) { |