mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI.git
synced 2024-11-26 04:25:18 +01:00
Fixes ecloud placeholders command (#201)
* fix parsing placeholders on ecloud placeholders command * try catch on registering expansions Co-authored-by: aBo0oDyy <35378106+aBo0oDyy@users.noreply.github.com>
This commit is contained in:
parent
d26561eaeb
commit
784d7dd273
@ -241,7 +241,11 @@ public class ExpansionCloudCommands implements CommandExecutor {
|
||||
} else {
|
||||
message.then(color(placeholders.get(i) + "&b, &f"));
|
||||
}
|
||||
message.tooltip(PlaceholderAPI.setPlaceholders(p, placeholders.get(i)));
|
||||
try {
|
||||
message.tooltip(PlaceholderAPI.setPlaceholders(p, placeholders.get(i)));
|
||||
} catch (Exception e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
message.send(p);
|
||||
|
@ -170,7 +170,12 @@ public final class ExpansionManager {
|
||||
for (Class<?> klass : subs) {
|
||||
PlaceholderExpansion ex = createInstance(klass);
|
||||
if (ex != null) {
|
||||
registerExpansion(ex);
|
||||
try {
|
||||
registerExpansion(ex);
|
||||
} catch (Exception e) {
|
||||
plugin.getLogger().info("Couldn't register " + ex.getIdentifier() + " expansion");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user