Add debug message in EssentialsSign.

This commit is contained in:
Ali Moghnieh 2016-06-27 21:46:32 +01:00
parent d174cea42e
commit 864dadab80

View File

@ -45,6 +45,9 @@ public class EssentialsSign {
final SignCreateEvent signEvent = new SignCreateEvent(sign, this, user);
ess.getServer().getPluginManager().callEvent(signEvent);
if (signEvent.isCancelled()) {
if (ess.getSettings().isDebug()) {
ess.getLogger().info("SignCreateEvent cancelled for sign " + signEvent.getEssentialsSign().getName());
}
return false;
}