File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/java/lol/hyper/toolstats/tools Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -156,12 +156,14 @@ public ItemStack createToken(String tokenType) {
156156 String materialFromConfig = tokenConfig .getString ("material" );
157157 if (materialFromConfig == null ) {
158158 toolStats .logger .warning ("Could not find material config for token " + tokenType );
159- return null ;
159+ toolStats .logger .warning ("Using PAPER as default." );
160+ materialFromConfig = "PAPER" ;
160161 }
161162 Material material = Material .getMaterial (materialFromConfig );
162163 if (material == null ) {
163164 toolStats .logger .warning ("Material " + materialFromConfig + " is not a valid Minecraft material." );
164- return null ;
165+ toolStats .logger .warning ("Using PAPER as default." );
166+ material = Material .PAPER ;
165167 }
166168
167169 ItemStack token = new ItemStack (material );
You can’t perform that action at this time.
0 commit comments