mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-18 05:43:49 -07:00
@@ -1060,9 +1060,9 @@ public final class PluginDescriptionFile {
|
||||
return map;
|
||||
}
|
||||
|
||||
private Map<?,?> asMap(Object object) throws InvalidDescriptionException {
|
||||
private Map<?, ?> asMap(Object object) throws InvalidDescriptionException {
|
||||
if (object instanceof Map) {
|
||||
return (Map<?,?>) object;
|
||||
return (Map<?, ?>) object;
|
||||
}
|
||||
throw new InvalidDescriptionException(object + " is not properly structured.");
|
||||
}
|
||||
|
@@ -54,15 +54,15 @@ public class RegisteredListener {
|
||||
* @throws EventException If an event handler throws an exception.
|
||||
*/
|
||||
public void callEvent(final Event event) throws EventException {
|
||||
if (event instanceof Cancellable){
|
||||
if (((Cancellable) event).isCancelled() && isIgnoringCancelled()){
|
||||
if (event instanceof Cancellable) {
|
||||
if (((Cancellable) event).isCancelled() && isIgnoringCancelled()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
executor.execute(listener, event);
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Whether this listener accepts cancelled events
|
||||
*
|
||||
* @return True when ignoring cancelled events
|
||||
|
@@ -152,7 +152,7 @@ public final class SimplePluginManager implements PluginManager {
|
||||
file.getPath(),
|
||||
replacedFile.getPath(),
|
||||
directory.getPath()
|
||||
));
|
||||
));
|
||||
}
|
||||
|
||||
Collection<String> softDependencySet = description.getSoftDepend();
|
||||
@@ -443,7 +443,7 @@ public final class SimplePluginManager implements PluginManager {
|
||||
try {
|
||||
server.getMessenger().unregisterIncomingPluginChannel(plugin);
|
||||
server.getMessenger().unregisterOutgoingPluginChannel(plugin);
|
||||
} catch(Throwable ex) {
|
||||
} catch (Throwable ex) {
|
||||
server.getLogger().log(Level.SEVERE, "Error occurred (in the plugin loader) while unregistering plugin channels for " + plugin.getDescription().getFullName() + " (Is it up to date?)", ex);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user