diff options
author | NEMESIS13cz <seke94@seznam.cz> | 2015-10-30 16:37:47 +0100 |
---|---|---|
committer | NEMESIS13cz <seke94@seznam.cz> | 2015-10-30 16:37:47 +0100 |
commit | 4ed319f15db990f3623b28f3ac876e7d39393041 (patch) | |
tree | ebc675e52fb74b7240f61c564a9e35ca08175ee6 | |
parent | 45a9b260d91ba9a324e27c4317171f9761de921e (diff) |
Fixed offline players and no notification for the punished player
-rw-r--r-- | punishments.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/punishments.py b/punishments.py index 4c39092..4b57be1 100644 --- a/punishments.py +++ b/punishments.py @@ -98,7 +98,7 @@ def command(sender, cmd, label, args): msg(sender, "&e-&a There are no people mining obsidian") return True for slave in slaves: - msg(sender, "&e-&a %s: %s blocks" % (slave.get_uuid(), slave.get_blocks())) + msg(sender, "&e-&a %s: %s blocks" % (server.getOfflinePlayer(juuid(slave.get_uuid())).getName(), slave.get_blocks())) return True elif args[0] == "add": player = server.getOfflinePlayer(str(args[1])) @@ -106,6 +106,7 @@ def command(sender, cmd, label, args): player.teleport(server.getWorld(punish_world).getSpawnLocation()) Slave(False, player, int(args[2])) save_slaves() + msg(player, "&e-&a You have been punished, mine %s blocks of obsidian to get out!" % args[2]) msg(sender, "&e-&a Player %s has been added into punishments for %s blocks of obsidian" % (player.getName(), args[2])) else: msg(sender, "&cYou can only punish online players") |