mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56: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 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 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 fishing exploit prevention
|
||||||
|
+ Added permission node to bypass the fishing exploit prevention
|
||||||
+ Added boosts to Fishing chance depending on conditions
|
+ Added boosts to Fishing chance depending on conditions
|
||||||
+ Added McMMOAbilityActivateEvent and McMMOAbilityDeactivateEvent
|
+ Added McMMOAbilityActivateEvent and McMMOAbilityDeactivateEvent
|
||||||
+ Added config option to toggle the size of fireworks
|
+ Added config option to toggle the size of fireworks
|
||||||
|
@ -178,7 +178,9 @@ public class PlayerListener implements Listener {
|
|||||||
|
|
||||||
switch (event.getState()) {
|
switch (event.getState()) {
|
||||||
case FISHING:
|
case FISHING:
|
||||||
event.setCancelled(fishingManager.exploitPrevention());
|
if (!Permissions.krakenBypass(player)) {
|
||||||
|
event.setCancelled(fishingManager.exploitPrevention());
|
||||||
|
}
|
||||||
|
|
||||||
if (event.isCancelled()) {
|
if (event.isCancelled()) {
|
||||||
return;
|
return;
|
||||||
|
@ -27,6 +27,7 @@ public final class Permissions {
|
|||||||
/* BYPASS */
|
/* BYPASS */
|
||||||
public static boolean hardcoreBypass(Permissible permissible) { return permissible.hasPermission("mcmmo.bypass.hardcoremode"); }
|
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 arcaneBypass(Permissible permissible) { return permissible.hasPermission("mcmmo.bypass.arcanebypass"); }
|
||||||
|
public static boolean krakenBypass(Permissible permissible) { return permissible.hasPermission("mcmmo.bypass.kraken"); }
|
||||||
|
|
||||||
/* CHAT */
|
/* CHAT */
|
||||||
public static boolean partyChat(Permissible permissible) { return permissible.hasPermission("mcmmo.chat.partychat"); }
|
public static boolean partyChat(Permissible permissible) { return permissible.hasPermission("mcmmo.chat.partychat"); }
|
||||||
|
@ -610,6 +610,7 @@ permissions:
|
|||||||
children:
|
children:
|
||||||
mcmmo.bypass.arcanebypass: true
|
mcmmo.bypass.arcanebypass: true
|
||||||
mcmmo.bypass.hardcoremode: true
|
mcmmo.bypass.hardcoremode: true
|
||||||
|
mcmmo.bypass.kraken: true
|
||||||
mcmmo.commands.inspect.far: true
|
mcmmo.commands.inspect.far: true
|
||||||
mcmmo.commands.inspect.offline: true
|
mcmmo.commands.inspect.offline: true
|
||||||
mcmmo.bypass.arcanebypass:
|
mcmmo.bypass.arcanebypass:
|
||||||
@ -618,6 +619,9 @@ permissions:
|
|||||||
mcmmo.bypass.hardcoremode:
|
mcmmo.bypass.hardcoremode:
|
||||||
default: false
|
default: false
|
||||||
description: Allows user to bypass negative penalties of Hardcore mode
|
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:
|
mcmmo.bypass.inspect.distance:
|
||||||
default: false
|
default: false
|
||||||
description: Allows user to bypass Inspect's distance requirements
|
description: Allows user to bypass Inspect's distance requirements
|
||||||
|
Loading…
Reference in New Issue
Block a user