Use full class name for auto activate debug

This commit is contained in:
Olof Larsson 2017-06-11 19:57:01 +02:00
parent 830c3e3707
commit 2742bab229

View File

@ -240,14 +240,17 @@ public abstract class MassivePlugin extends JavaPlugin implements Listener, Name
Active active = asActive(object);
if (active == null) return;
if (active.isActive())
if (active.isActive() && debug)
{
if (debug) log(Txt.parse("<h>%s <b>is already active.", active.getClass().getSimpleName()));
log(Txt.parse("<h>%s<b> is already active.", active.getClass().getName()));
}
active.setActive(this);
if (debug) log(Txt.parse("<i>Activating <h>%s<i>.", active.getClass().getSimpleName()));
if (debug)
{
log(Txt.parse("<i>Activating <h>%s<i>.", active.getClass().getName()));
}
}
private static Active asActive(Object object)