mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-11 13:33:54 +00:00
Force Metrics to submit to TFM even if the plugin is renamed (#119)
This commit is contained in:
@ -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.");
|
||||
}
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user