-Added kick function
This commit is contained in:
c0508383 committed 2022-08-02 13:50:18 -05:00
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);
@@ -26,6 +26,8 @@ public interface IPlayer<T extends EntityPlayerMP> extends IEntityLivingBase<T>
*/
String getName();
void kick(String reason);
void setPosition(double x, double y, double z);
void setPosition(double x, double y, double z, int dimensionId);