mirror of
https://code.chipmunk.land/ChomeNS/chipmunkmod.git
synced 2025-11-13 19:56:15 +00:00
feat: run cspy self-care from the core if possible
This commit is contained in:
parent
b27140951b
commit
82ef0daf88
1 changed files with 10 additions and 1 deletions
|
|
@ -62,7 +62,16 @@ public class SelfCare implements Listener {
|
||||||
else if (!player.isInCreativeMode() && gamemodeEnabled)
|
else if (!player.isInCreativeMode() && gamemodeEnabled)
|
||||||
networkHandler.sendChatCommand("gamemode creative");
|
networkHandler.sendChatCommand("gamemode creative");
|
||||||
else if (!cspy && cspyEnabled && serverHasCommand("c"))
|
else if (!cspy && cspyEnabled && serverHasCommand("c"))
|
||||||
networkHandler.sendChatCommand("c on");
|
if (
|
||||||
|
!CommandCore.INSTANCE.ready
|
||||||
|
|| !CommandCore.INSTANCE.runFillCommand
|
||||||
|
|| !player.isInCreativeMode()
|
||||||
|
|| !player.hasPermissionLevel(2)
|
||||||
|
) {
|
||||||
|
networkHandler.sendChatCommand("c on");
|
||||||
|
} else {
|
||||||
|
CommandCore.INSTANCE.run("c " + player.getUuidAsString() + " on");
|
||||||
|
}
|
||||||
else if (!hasSkin && !skin.equalsIgnoreCase("off"))
|
else if (!hasSkin && !skin.equalsIgnoreCase("off"))
|
||||||
networkHandler.sendChatCommand("skin " + skin);
|
networkHandler.sendChatCommand("skin " + skin);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue