final Player player = SingletonRepository.getRuleProcessor().getPlayer(args.get(0));
if (player == null) {
admin.sendPrivateText("No such player: " + args.get(0));
return;
}
final RPSlot slot = player.getSlot(args.get(1));
if (slot == null) {
admin.sendPrivateText("No such slot: " + args.get(1));
return;
}
// remove old store object
final RPObject rpObject = slot.iterator().next();
slot.remove(rpObject.getID());
// create new store object
slot.add(new RPObject());
// notify the player
player.sendPrivateText("Your " + args.get(1) + " state was reset by "
+ admin.getTitle());
}