File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
DeathMessagesLegacy/src/main/java/dev/mrshawn/deathmessages/utils
DeathMessagesModern/src/main/java/dev/mrshawn/deathmessages/utils Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 41
41
42
42
public class Util {
43
43
44
- public static final Audience CONSOLE = DeathMessages .getInstance ().adventure ().console ();
45
- public static final TextReplacementConfig PREFIX = TextReplacementConfig .builder ()
46
- .matchLiteral ("%prefix%" )
47
- .replacement (convertFromLegacy (Messages .getInstance ().getConfig ().getString ("Prefix" )))
48
- .build ();
49
-
50
44
private static final Pattern BUNGEE_RGB_PATTERN = Pattern .compile ("(?<!&)(#[0-9a-fA-F]{6})" ); // Match bungee RGB color code only, use Negative Lookbehind to avoid matching code begin with &
51
45
public static final Pattern STRIP_COLOR_PATTERN = Pattern .compile ("(?i)" + "§" + "[0-9A-FK-ORX]" );
52
46
public static final Pattern DM_PERM_PATTERN = Pattern .compile ("PERMISSION\\ [(.*?)]" );
@@ -55,6 +49,12 @@ public class Util {
55
49
public static final Pattern DM_HOVER_EVENT_PATTERN = Pattern .compile ("\\ [(.*?)]" ); // Match all string between [ and ], e.g. aaa[123]bbb -> [123]
56
50
public static final Pattern PAPI_PLACEHOLDER_PATTERN = Pattern .compile ("%([^%]+)%" );
57
51
52
+ public static final Audience CONSOLE = DeathMessages .getInstance ().adventure ().console ();
53
+ public static final TextReplacementConfig PREFIX = TextReplacementConfig .builder ()
54
+ .matchLiteral ("%prefix%" )
55
+ .replacement (convertFromLegacy (Messages .getInstance ().getConfig ().getString ("Prefix" )))
56
+ .build ();
57
+
58
58
public static Pattern [] customWeaponNamePatterns ;
59
59
60
60
public static final Map <UUID , LivingEntity > crystalDeathData = new HashMap <>(); // <EndCrystal UUID, Causing Entity instance>
Original file line number Diff line number Diff line change 41
41
42
42
public class Util {
43
43
44
- public static final ConsoleCommandSender CONSOLE = Bukkit .getServer ().getConsoleSender ();
45
- public static final TextReplacementConfig PREFIX = TextReplacementConfig .builder ()
46
- .matchLiteral ("%prefix%" )
47
- .replacement (convertFromLegacy (Messages .getInstance ().getConfig ().getString ("Prefix" )))
48
- .build ();
49
-
50
44
private static final Pattern BUNGEE_RGB_PATTERN = Pattern .compile ("(?<!&)(#[0-9a-fA-F]{6})" ); // Match bungee RGB color code only, use Negative Lookbehind to avoid matching code begin with &
51
45
public static final Pattern STRIP_COLOR_PATTERN = Pattern .compile ("(?i)" + "§" + "[0-9A-FK-ORX]" );
52
46
public static final Pattern DM_PERM_PATTERN = Pattern .compile ("PERMISSION\\ [(.*?)]" );
@@ -55,6 +49,12 @@ public class Util {
55
49
public static final Pattern DM_HOVER_EVENT_PATTERN = Pattern .compile ("\\ [(.*?)]" ); // Match all string between [ and ], e.g. aaa[123]bbb -> [123]
56
50
public static final Pattern PAPI_PLACEHOLDER_PATTERN = Pattern .compile ("%([^%]+)%" );
57
51
52
+ public static final ConsoleCommandSender CONSOLE = Bukkit .getServer ().getConsoleSender ();
53
+ public static final TextReplacementConfig PREFIX = TextReplacementConfig .builder ()
54
+ .matchLiteral ("%prefix%" )
55
+ .replacement (convertFromLegacy (Messages .getInstance ().getConfig ().getString ("Prefix" )))
56
+ .build ();
57
+
58
58
public static Pattern [] customWeaponNamePatterns ;
59
59
60
60
public static final Map <UUID , LivingEntity > crystalDeathData = new HashMap <>(); // <EndCrystal UUID, Causing Entity instance>
You can’t perform that action at this time.
0 commit comments