mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-19 14:01:20 +01:00
Some cleanup
This commit is contained in:
parent
d1aa15d1e9
commit
bacaf7a224
@ -25,14 +25,14 @@ permissions:
|
|||||||
description: Give a player all admin rights
|
description: Give a player all admin rights
|
||||||
children:
|
children:
|
||||||
nocheat.admin.chatlog:
|
nocheat.admin.chatlog:
|
||||||
description: Show log messages in the players chat
|
description: Player can see NoCheats log messages in the ingame chat
|
||||||
nocheat.admin.commands:
|
nocheat.admin.commands:
|
||||||
description: allow use of all of the "nocheat" commands
|
description: allow use of the "nocheat" commands
|
||||||
nocheat.checks:
|
nocheat.checks:
|
||||||
description: Allow the player to bypass all checks
|
description: Allow the player to bypass all checks
|
||||||
children:
|
children:
|
||||||
nocheat.checks.moving:
|
nocheat.checks.moving:
|
||||||
description: Allow the player to bypass all moving checks
|
description: Allow the player to bypass all moving related checks
|
||||||
children:
|
children:
|
||||||
nocheat.checks.moving.runfly:
|
nocheat.checks.moving.runfly:
|
||||||
description: Allow a player to move as free and as fast as he wants (ignores flying, swimming and sneaking settings)
|
description: Allow a player to move as free and as fast as he wants (ignores flying, swimming and sneaking settings)
|
||||||
@ -69,8 +69,6 @@ permissions:
|
|||||||
description: Allow a player to send an infinite amount of chat messages
|
description: Allow a player to send an infinite amount of chat messages
|
||||||
nocheat.checks.chat.color:
|
nocheat.checks.chat.color:
|
||||||
description: Allow a player to send colored chat messages
|
description: Allow a player to send colored chat messages
|
||||||
nocheat.checks.chat.empty:
|
|
||||||
description: Allow a player to send empty messages (normally not possible)
|
|
||||||
nocheat.checks.fight:
|
nocheat.checks.fight:
|
||||||
description: Allow the player to bypass all fight checks
|
description: Allow the player to bypass all fight checks
|
||||||
children:
|
children:
|
||||||
|
4
pom.xml
4
pom.xml
@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>cc.co.evenprime.bukkit</groupId>
|
<groupId>cc.co.evenprime.bukkit</groupId>
|
||||||
<artifactId>NoCheat</artifactId>
|
<artifactId>NoCheat</artifactId>
|
||||||
<version>2.25</version>
|
<version>2.26</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>NoCheat</name>
|
<name>NoCheat</name>
|
||||||
<properties>
|
<properties>
|
||||||
@ -13,7 +13,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bukkit</groupId>
|
<groupId>org.bukkit</groupId>
|
||||||
<artifactId>craftbukkit</artifactId>
|
<artifactId>craftbukkit</artifactId>
|
||||||
<version>1.1-R2-SNAPSHOT</version>
|
<version>1.1-R4-SNAPSHOT</version>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
@ -156,7 +156,7 @@ public class RunningCheck extends MovingCheck {
|
|||||||
if(cc.sneakingCheck && player.getPlayer().isSneaking() && !player.hasPermission(Permissions.MOVING_SNEAKING)) {
|
if(cc.sneakingCheck && player.getPlayer().isSneaking() && !player.hasPermission(Permissions.MOVING_SNEAKING)) {
|
||||||
limit = cc.sneakingSpeedLimit;
|
limit = cc.sneakingSpeedLimit;
|
||||||
suffix = "sneaking";
|
suffix = "sneaking";
|
||||||
} else if(isSwimming) {
|
} else if(isSwimming && !player.hasPermission(Permissions.MOVING_SWIMMING)) {
|
||||||
limit = cc.swimmingSpeedLimit;
|
limit = cc.swimmingSpeedLimit;
|
||||||
suffix = "swimming";
|
suffix = "swimming";
|
||||||
} else if(!sprinting) {
|
} else if(!sprinting) {
|
||||||
|
@ -12,6 +12,7 @@ public class Permissions {
|
|||||||
|
|
||||||
public final static String MOVING = CHECKS + ".moving";
|
public final static String MOVING = CHECKS + ".moving";
|
||||||
public final static String MOVING_RUNFLY = MOVING + ".runfly";
|
public final static String MOVING_RUNFLY = MOVING + ".runfly";
|
||||||
|
public static final String MOVING_SWIMMING = MOVING + ".swimming";
|
||||||
public final static String MOVING_SNEAKING = MOVING + ".sneaking";
|
public final static String MOVING_SNEAKING = MOVING + ".sneaking";
|
||||||
public final static String MOVING_FLYING = MOVING + ".flying";
|
public final static String MOVING_FLYING = MOVING + ".flying";
|
||||||
public final static String MOVING_NOFALL = MOVING + ".nofall";
|
public final static String MOVING_NOFALL = MOVING + ".nofall";
|
||||||
|
Loading…
Reference in New Issue
Block a user