-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
80 changed files
with
681 additions
and
457 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/enums/AEFKey.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package me.moomoo.anarchyexploitfixes.enums; | ||
|
||
import me.moomoo.anarchyexploitfixes.AnarchyExploitFixes; | ||
import org.bukkit.Keyed; | ||
import org.bukkit.NamespacedKey; | ||
import org.intellij.lang.annotations.Pattern; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public enum AEFKey implements Keyed { | ||
|
||
CONNECT_MSG_TOGGLE("show-connection-msgs"); | ||
|
||
private final NamespacedKey key; | ||
|
||
AEFKey(@Pattern("[a-z0-9_\\-.]+") String key) { | ||
this.key = new NamespacedKey(AnarchyExploitFixes.getInstance(), key); | ||
} | ||
|
||
@Override | ||
public @NotNull NamespacedKey getKey() { | ||
return key; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...chyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/enums/AEFPermission.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package me.moomoo.anarchyexploitfixes.enums; | ||
|
||
public enum AEFPermission { | ||
|
||
BYPASS_ELYTRA("bypass.elytra"), | ||
BYPASS_NETHER_ROOF("bypass.netherroof"), | ||
BYPASS_CMD_WHITELIST("bypass.commandwhitelist"), | ||
BYPASS_CHAT("bypass.chat"), | ||
BYPASS_ILLEGAL_ITEMS("bypass.illegalitems"), | ||
SILENT_JOIN("silentJoin"), | ||
SILENT_LEAVE("silentLeave"); | ||
|
||
private final String permission; | ||
|
||
AEFPermission(String perm) { | ||
this.permission = "aef." + perm; | ||
} | ||
|
||
public String get() { | ||
return permission; | ||
} | ||
} |
20 changes: 0 additions & 20 deletions
20
...hyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/enums/NamespacedKeys.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.