Skip to content

Commit a2456c5

Browse files
committed
Removed excess capitalisation
1 parent b987916 commit a2456c5

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/main/java/me/clip/placeholderapi/PlaceholderAPIPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public static SimpleDateFormat getDateFormat() {
121121
try {
122122
return new SimpleDateFormat(getInstance().getPlaceholderAPIConfig().dateFormat());
123123
} catch (final IllegalArgumentException ex) {
124-
Msg.warn("Configured Date format ('%s') is invalid! Defaulting to 'MM/dd/yy HH:mm:ss'",
124+
Msg.warn("Configured date format ('%s') is invalid! Defaulting to 'MM/dd/yy HH:mm:ss'",
125125
ex, getInstance().getPlaceholderAPIConfig().dateFormat());
126126
return new SimpleDateFormat("MM/dd/yy HH:mm:ss");
127127
}

src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)