mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2024-10-31 19:44:03 +01:00
Compare commits
1 Commits
9448fbfaa0
...
468837f0ed
Author | SHA1 | Date | |
---|---|---|---|
|
468837f0ed |
@ -29,7 +29,7 @@ public abstract class PlaceholderHook {
|
|||||||
@Nullable
|
@Nullable
|
||||||
public String onRequest(final OfflinePlayer player, @NotNull final String params) {
|
public String onRequest(final OfflinePlayer player, @NotNull final String params) {
|
||||||
if (player != null && player.isOnline()) {
|
if (player != null && player.isOnline()) {
|
||||||
return onPlaceholderRequest(player.getPlayer(), params);
|
return onPlaceholderRequest((Player) player, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
return onPlaceholderRequest(null, params);
|
return onPlaceholderRequest(null, params);
|
||||||
|
@ -200,9 +200,7 @@ public final class CommandDump extends PlaceholderCommand {
|
|||||||
for (final Plugin other : plugins) {
|
for (final Plugin other : plugins) {
|
||||||
builder.append(" ")
|
builder.append(" ")
|
||||||
.append(String.format("%-" + size + "s", other.getName()))
|
.append(String.format("%-" + size + "s", other.getName()))
|
||||||
.append(" [Authors: [")
|
.append(" [Version: ")
|
||||||
.append(String.join(", ", other.getDescription().getAuthors()))
|
|
||||||
.append("], Version: ")
|
|
||||||
.append(other.getDescription().getVersion())
|
.append(other.getDescription().getVersion())
|
||||||
.append("]")
|
.append("]")
|
||||||
.append("\n");
|
.append("\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user