mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Added permission node to bypass the fishing exploit prevention
Permission node: `mcmmo.bypass.kraken` false by default.
This commit is contained in:
parent
2a57d7007d
commit
68d8d6dd30
@ -20,6 +20,7 @@ Version 1.4.06-dev
|
||||
+ Added configurable cooldown and warmup times when using /ptp
|
||||
+ Added a new Party item share category "Misc" which contains a list of configurable items. (By default all tools and armor)
|
||||
+ Added fishing exploit prevention
|
||||
+ Added permission node to bypass the fishing exploit prevention
|
||||
+ Added boosts to Fishing chance depending on conditions
|
||||
+ Added McMMOAbilityActivateEvent and McMMOAbilityDeactivateEvent
|
||||
+ Added config option to toggle the size of fireworks
|
||||
|
@ -178,7 +178,9 @@ public class PlayerListener implements Listener {
|
||||
|
||||
switch (event.getState()) {
|
||||
case FISHING:
|
||||
if (!Permissions.krakenBypass(player)) {
|
||||
event.setCancelled(fishingManager.exploitPrevention());
|
||||
}
|
||||
|
||||
if (event.isCancelled()) {
|
||||
return;
|
||||
|
@ -27,6 +27,7 @@ public final class Permissions {
|
||||
/* BYPASS */
|
||||
public static boolean hardcoreBypass(Permissible permissible) { return permissible.hasPermission("mcmmo.bypass.hardcoremode"); }
|
||||
public static boolean arcaneBypass(Permissible permissible) { return permissible.hasPermission("mcmmo.bypass.arcanebypass"); }
|
||||
public static boolean krakenBypass(Permissible permissible) { return permissible.hasPermission("mcmmo.bypass.kraken"); }
|
||||
|
||||
/* CHAT */
|
||||
public static boolean partyChat(Permissible permissible) { return permissible.hasPermission("mcmmo.chat.partychat"); }
|
||||
|
@ -610,6 +610,7 @@ permissions:
|
||||
children:
|
||||
mcmmo.bypass.arcanebypass: true
|
||||
mcmmo.bypass.hardcoremode: true
|
||||
mcmmo.bypass.kraken: true
|
||||
mcmmo.commands.inspect.far: true
|
||||
mcmmo.commands.inspect.offline: true
|
||||
mcmmo.bypass.arcanebypass:
|
||||
@ -618,6 +619,9 @@ permissions:
|
||||
mcmmo.bypass.hardcoremode:
|
||||
default: false
|
||||
description: Allows user to bypass negative penalties of Hardcore mode
|
||||
mcmmo.bypass.kraken:
|
||||
default: false
|
||||
description: Allows user to bypass the effects of the exploit prevention when Fishing
|
||||
mcmmo.bypass.inspect.distance:
|
||||
default: false
|
||||
description: Allows user to bypass Inspect's distance requirements
|
||||
|
Loading…
Reference in New Issue
Block a user