Merge with upstream

This commit is contained in:
JeromSar 2015-06-11 22:29:39 +02:00
commit bf1d779b95
4 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

@ -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() + ".");
} }
} }

View file

@ -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;
} }

View file

@ -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();