File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
src/main/java/chloeprime/fix4log4j Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ apply plugin: 'net.minecraftforge.gradle'
1212apply plugin : ' eclipse'
1313apply plugin : ' maven-publish'
1414
15- version = ' 1.1.4 '
15+ version = ' 1.2.3 '
1616group = ' chloeprime.fix4log4j' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
1717archivesBaseName = ' Fix4Log4J'
1818
Original file line number Diff line number Diff line change 44import chloeprime .fix4log4j .Fixer ;
55import org .apache .logging .log4j .LogManager ;
66import org .bukkit .event .EventHandler ;
7+ import org .bukkit .event .EventPriority ;
78import org .bukkit .event .Listener ;
89import org .bukkit .event .player .AsyncPlayerChatEvent ;
910import org .bukkit .event .player .PlayerCommandPreprocessEvent ;
@@ -25,10 +26,12 @@ public void onLoad() {
2526 public void onEnable () {
2627 super .onEnable ();
2728 Fixer .doRuntimeTest (LogManager .getLogger ("Fix4Log4J" ));
28- doCensor = getConfig ().getBoolean ("censor-user-input" );
29+
30+ doCensor = getConfig ().getBoolean ("censor-user-input" , true );
31+ getServer ().getPluginManager ().registerEvents (this , this );
2932 }
3033
31- @ EventHandler
34+ @ EventHandler ( priority = EventPriority . LOWEST )
3235 public void censorCommand (PlayerCommandPreprocessEvent event ) {
3336 if (!doCensor ) {
3437 return ;
@@ -39,7 +42,7 @@ public void censorCommand(PlayerCommandPreprocessEvent event) {
3942 }
4043 }
4144
42- @ EventHandler
45+ @ EventHandler ( priority = EventPriority . LOWEST )
4346 public void censorChatAsync (AsyncPlayerChatEvent event ) {
4447 if (!doCensor ) {
4548 return ;
Original file line number Diff line number Diff line change 1818public class Fix4Log4JMod {
1919 public static final String MODID = "fix4log4j" ;
2020 public static final String NAME = "Fix4Log4J" ;
21- public static final String VERSION = "1.1.4 " ;
21+ public static final String VERSION = "1.2.3 " ;
2222
2323 @ EventHandler
2424 public void construct (FMLConstructionEvent event ) {
You can’t perform that action at this time.
0 commit comments