This commit is contained in:
Steven Lawson 2012-10-22 16:57:34 -04:00
commit 1f6524ff25
3 changed files with 8 additions and 4 deletions

5
appinfo.properties Normal file
View File

@ -0,0 +1,5 @@
#Sat, 28 Jul 2012 15:17:23 -0400
program.VERSION=2.6.1
program.BUILDNUM=95
program.BUILDDATE=08/08/2012 07\:35 PM

View File

@ -56,7 +56,7 @@ public class Command_onlinemode extends TFM_Command
} }
} }
TFM_Util.adminAction(sender.getName(), "Switched 'online-mode=" + (server.getOnlineMode() ? "true" : "false") + "'.", true); TFM_Util.adminAction(sender.getName(), "Turning player validation " + ((online_mode ? "on" : "off")), true);
server.reload(); server.reload();
} }

View File

@ -298,14 +298,12 @@ public class TFM_PlayerListener implements Listener
return; return;
} }
//JeromSar
// check for muted // check for muted
if (playerdata.isMuted()) if (playerdata.isMuted())
{ {
if (!TFM_Util.isUserSuperadmin(p)) if (!TFM_Util.isUserSuperadmin(p))
{ {
p.sendMessage(ChatColor.RED + "You are currently muted."); p.sendMessage(ChatColor.RED + "You are muted, STFU!");
event.setCancelled(true); event.setCancelled(true);
return; return;
} }
@ -539,6 +537,7 @@ public class TFM_PlayerListener implements Listener
p.getInventory().clear(); p.getInventory().clear();
p.setOp(false); p.setOp(false);
p.setGameMode(GameMode.SURVIVAL); p.setGameMode(GameMode.SURVIVAL);
TFM_Util.bcastMsg("Warning: " + p.getName() + " has been flagged as an impostor!", ChatColor.RED);
} }
else else
{ {