mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-11 21:57:40 +00:00
IPlayer:
-Added kick function
This commit is contained in:
1 parent
2819c76d0a
commit
0f5df933ae
2 files changed
+6
No files matched your search
@@ -72,6 +72,10 @@ public class ScriptPlayer<T extends EntityPlayerMP> extends ScriptLivingBase<T>
|
||||
return player.getCommandSenderName();
|
||||
}
|
||||
|
||||
public void kick(String reason) {
|
||||
player.playerNetServerHandler.kickPlayerFromServer(reason);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void spawnParticle(IParticle entityParticle) {
|
||||
entityParticle.spawnOnEntity(this);
|
||||
|
||||
Reference in new issue
Block a user