mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Merge with upstream
This commit is contained in:
commit
bf1d779b95
@ -59,7 +59,7 @@ public class Command_invis extends TFM_Command
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
playerMsg("Invisble players (" + players.size() + "): " + StringUtils.join(players, ", "));
|
playerMsg("Invisible players (" + players.size() + "): " + StringUtils.join(players, ", "));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -20,7 +20,7 @@ public class Command_kicknoob extends TFM_Command
|
|||||||
{
|
{
|
||||||
if (!TFM_AdminList.isSuperAdmin(player))
|
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:
|
case WATER_BUCKET:
|
||||||
{
|
{
|
||||||
if (TFM_ConfigEntry.ALLOW_WATER_PLACE.getBoolean())
|
if (TFM_AdminList.isSuperAdmin(player) || TFM_ConfigEntry.ALLOW_WATER_PLACE.getBoolean())
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -94,7 +94,7 @@ public class TFM_PlayerListener implements Listener
|
|||||||
|
|
||||||
case LAVA_BUCKET:
|
case LAVA_BUCKET:
|
||||||
{
|
{
|
||||||
if (TFM_ConfigEntry.ALLOW_LAVA_PLACE.getBoolean())
|
if (TFM_AdminList.isSuperAdmin(player) || TFM_ConfigEntry.ALLOW_LAVA_PLACE.getBoolean())
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,7 @@ public class TFM_ServerInterface
|
|||||||
// Check force-IP match
|
// Check force-IP match
|
||||||
if (TFM_ConfigEntry.FORCE_IP_ENABLED.getBoolean())
|
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 String connectAddress = TFM_ConfigEntry.SERVER_ADDRESS.getString();
|
||||||
final int connectPort = TotalFreedomMod.server.getPort();
|
final int connectPort = TotalFreedomMod.server.getPort();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user