mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-26 17:05:01 +00:00
Fix for ops using /packet for spamming
Need appinfo,properties, Eclipse doesnt generate it Fixed SerialVersion UID Made SuperAdmin Stand out in /list
This commit is contained in:
parent
477c8ffdd0
commit
ea151d63e4
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,7 +2,6 @@
|
|||||||
/nbproject/private/
|
/nbproject/private/
|
||||||
/dist/
|
/dist/
|
||||||
/build/
|
/build/
|
||||||
appinfo.properties
|
|
||||||
buildnumber.properties
|
buildnumber.properties
|
||||||
|
|
||||||
# eclipse excludes (JeromSar)
|
# eclipse excludes (JeromSar)
|
||||||
|
@ -35,11 +35,11 @@ public class Command_list extends TFM_Command
|
|||||||
{
|
{
|
||||||
if(TFM_SuperadminList.isSeniorAdmin(p))
|
if(TFM_SuperadminList.isSeniorAdmin(p))
|
||||||
{
|
{
|
||||||
prefix = (ChatColor.GOLD + "[SenAdmin]");
|
prefix = (ChatColor.LIGHT_PURPLE + "[SenAdmin]");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
prefix = (ChatColor.RED + "[SupAdmin]");
|
prefix = (ChatColor.GOLD + "[SupAdmin]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -478,7 +478,11 @@ public class TFM_PlayerListener implements Listener
|
|||||||
{
|
{
|
||||||
block_command = true;
|
block_command = true;
|
||||||
}
|
}
|
||||||
else if (TFM_SuperadminList.isUserSuperadmin(p) && Pattern.compile("^/socialspy").matcher(command).find())
|
else if (!TFM_SuperadminList.isUserSuperadmin(p) && Pattern.compile("^/socialspy").matcher(command).find())
|
||||||
|
{
|
||||||
|
block_command = true;
|
||||||
|
}
|
||||||
|
else if (!TFM_SuperadminList.isUserSuperadmin(p) && Pattern.compile("^/packet").matcher(command).find())
|
||||||
{
|
{
|
||||||
block_command = true;
|
block_command = true;
|
||||||
}
|
}
|
||||||
|
@ -15,9 +15,8 @@ import org.bukkit.World;
|
|||||||
|
|
||||||
public class TFM_ProtectedArea implements Serializable
|
public class TFM_ProtectedArea implements Serializable
|
||||||
{
|
{
|
||||||
// Serializable Classes need one of these apperantly
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -3270338811000937254L;
|
||||||
public static final double MAX_RADIUS = 50.0D;
|
public static final double MAX_RADIUS = 50.0D;
|
||||||
private static Map<String, TFM_ProtectedArea> protectedAreas = new HashMap<String, TFM_ProtectedArea>();
|
private static Map<String, TFM_ProtectedArea> protectedAreas = new HashMap<String, TFM_ProtectedArea>();
|
||||||
private final SerializableLocation center_location;
|
private final SerializableLocation center_location;
|
||||||
|
Loading…
Reference in New Issue
Block a user