@@ -182,7 +182,7 @@ public Optional<PlaceholderExpansion> register(
182182
183183 if (expansion .getRequiredPlugin () != null && !expansion .getRequiredPlugin ().isEmpty ()) {
184184 if (!Bukkit .getPluginManager ().isPluginEnabled (expansion .getRequiredPlugin ())) {
185- Msg .warn ("Cannot load expansion %s due to a missing Plugin : %s" , expansion .getIdentifier (),
185+ Msg .warn ("Cannot load expansion %s due to a missing plugin : %s" , expansion .getIdentifier (),
186186 expansion .getRequiredPlugin ());
187187 return Optional .empty ();
188188 }
@@ -334,7 +334,7 @@ public boolean unregister(@NotNull final PlaceholderExpansion expansion) {
334334 }
335335
336336 private void registerAll (@ NotNull final CommandSender sender ) {
337- Msg .info ("Placeholder expansion registratuib initializing..." );
337+ Msg .info ("Placeholder expansion registration initializing..." );
338338
339339 Futures .onMainThread (plugin , findExpansionsOnDisk (), (classes , exception ) -> {
340340 if (exception != null ) {
@@ -405,7 +405,7 @@ private void unregisterAll() {
405405 final Class <? extends PlaceholderExpansion > expansionClass = FileUtil .findClass (file , PlaceholderExpansion .class );
406406
407407 if (expansionClass == null ) {
408- Msg .severe ("Failed to load Expansion %s, as it does not have a class which"
408+ Msg .severe ("Failed to load expansion %s, as it does not have a class which"
409409 + " extends PlaceholderExpansion" , file .getName ());
410410 return null ;
411411 }
@@ -414,14 +414,14 @@ private void unregisterAll() {
414414 .map (method -> new MethodSignature (method .getName (), method .getParameterTypes ()))
415415 .collect (Collectors .toSet ());
416416 if (!expansionMethods .containsAll (ABSTRACT_EXPANSION_METHODS )) {
417- Msg .severe ("Failed to load Expansion %s, as it does not have the required"
417+ Msg .severe ("Failed to load expansion %s, as it does not have the required"
418418 + " methods declared for a PlaceholderExpansion." , file .getName ());
419419 return null ;
420420 }
421421
422422 return expansionClass ;
423423 } catch (final VerifyError ex ) {
424- Msg .severe ("Failed to load Expansion class %s (Is a dependency missing?" , file .getName ());
424+ Msg .severe ("Failed to load expansion class %s (is a dependency missing?" , file .getName () + ')' );
425425 Msg .severe ("Cause: %s %s" , ex .getClass ().getSimpleName (), ex .getMessage ());
426426 return null ;
427427 } catch (final Exception ex ) {
@@ -441,7 +441,7 @@ public PlaceholderExpansion createExpansionInstance(
441441 throw ((LinkageError ) ex .getCause ());
442442 }
443443
444- Msg .warn ("There was an issue with loading an Expansion ." );
444+ Msg .warn ("There was an issue with loading an expansion ." );
445445 return null ;
446446 }
447447 }
@@ -471,8 +471,8 @@ public void onPluginDisable(@NotNull final PluginDisableEvent event) {
471471 }
472472
473473 expansion .unregister ();
474- Msg .info ("Unregistered placeholder Expansion %s" , expansion .getIdentifier ());
475- Msg .info ("Reason: Required plugin %s was disabled." , name );
474+ Msg .info ("Unregistered placeholder expansion %s" , expansion .getIdentifier ());
475+ Msg .info ("Reason: required plugin %s was disabled." , name );
476476 }
477477 }
478478
0 commit comments