mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 02:05:41 +00:00
Merge with upstream
This commit is contained in:
commit
bf1d779b95
@ -59,7 +59,7 @@ public class Command_invis extends TFM_Command
|
||||
}
|
||||
else
|
||||
{
|
||||
playerMsg("Invisble players (" + players.size() + "): " + StringUtils.join(players, ", "));
|
||||
playerMsg("Invisible players (" + players.size() + "): " + StringUtils.join(players, ", "));
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -20,7 +20,7 @@ public class Command_kicknoob extends TFM_Command
|
||||
{
|
||||
if (!TFM_AdminList.isSuperAdmin(player))
|
||||
{
|
||||
player.kickPlayer(ChatColor.RED + "Disconnected by admin.");
|
||||
player.kickPlayer(ChatColor.RED + "All non-superadmins were kicked by " + sender.getName() + ".");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -81,7 +81,7 @@ public class TFM_PlayerListener implements Listener
|
||||
{
|
||||
case WATER_BUCKET:
|
||||
{
|
||||
if (TFM_ConfigEntry.ALLOW_WATER_PLACE.getBoolean())
|
||||
if (TFM_AdminList.isSuperAdmin(player) || TFM_ConfigEntry.ALLOW_WATER_PLACE.getBoolean())
|
||||
{
|
||||
break;
|
||||
}
|
||||
@ -94,7 +94,7 @@ public class TFM_PlayerListener implements Listener
|
||||
|
||||
case LAVA_BUCKET:
|
||||
{
|
||||
if (TFM_ConfigEntry.ALLOW_LAVA_PLACE.getBoolean())
|
||||
if (TFM_AdminList.isSuperAdmin(player) || TFM_ConfigEntry.ALLOW_LAVA_PLACE.getBoolean())
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ public class TFM_ServerInterface
|
||||
// Check force-IP match
|
||||
if (TFM_ConfigEntry.FORCE_IP_ENABLED.getBoolean())
|
||||
{
|
||||
final String hostname = event.getHostname().replace("FML", ""); // Forge fix - https://github.com/TotalFreedom/TotalFreedomMod/issues/493
|
||||
final String hostname = event.getHostname().replace("\u0000FML\u0000", ""); // Forge fix - https://github.com/TotalFreedom/TotalFreedomMod/issues/493
|
||||
final String connectAddress = TFM_ConfigEntry.SERVER_ADDRESS.getString();
|
||||
final int connectPort = TotalFreedomMod.server.getPort();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user