Force Metrics to submit to TFM even if the plugin is renamed (#119)

This commit is contained in:
Model 3
2018-09-18 06:56:24 -07:00
committed by Seth
parent d58ee9f590
commit 322ed77232
5 changed files with 9 additions and 12 deletions

View File

@ -31,7 +31,7 @@ public class CommandLoader extends FreedomService
handler.setOnlyPlayerMessage(ChatColor.RED + "This command can only be used by players.");
handler.loadFrom(FreedomCommand.class.getPackage());
handler.registerAll("TotalFreedomMod", true);
handler.registerAll(plugin.getDescription().getName(), true);
FLog.info("Loaded " + handler.getExecutors().size() + " commands.");
}

View File

@ -306,12 +306,12 @@ public class FPlayer
{
if (getPlayer() != null)
{
FUtil.adminAction("TotalFreedom", "Unmuting " + getPlayer().getName(), false);
FUtil.adminAction(ConfigEntry.SERVER_NAME.getString(), "Unmuting " + getPlayer().getName(), false);
setMuted(false);
}
else
{
FUtil.adminAction("TotalFreedom", "Unmuting " + getName(), false);
FUtil.adminAction(ConfigEntry.SERVER_NAME.getString(), "Unmuting " + getName(), false);
plugin.mu.MUTED_PLAYERS.remove(getName());
}
}
@ -343,7 +343,6 @@ public class FPlayer
this.inAdminchat = inAdminchat;
}
public boolean inAdminChat()
{
return this.inAdminchat;