Change /sudo command fixes #14

This commit is contained in:
Dico200
2015-03-18 21:09:49 +01:00
parent 39654bf4a7
commit 55ac6c0977
2 changed files with 16 additions and 20 deletions

View File

@@ -8,6 +8,7 @@ import org.bukkit.entity.Player as Player
import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause as TeleportCause
import org.bukkit.block as bblock
import org.bukkit.event.entity as entity
import org.bukkit.command.ConsoleCommandSender
from org.bukkit.entity import *
@@ -110,10 +111,10 @@ def noperm(player):
def runas(player, cmd):
"""
run a command as player
the cmd should no be prefixed with a /
the cmd should NOT be prefixed with a /
"""
player.chat("/" + cmd)
def is_player(obj):
"""