mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Changed back to raw Lists in config
This commit is contained in:
parent
d71b043102
commit
55d94b5d59
@ -1,5 +1,5 @@
|
||||
#Sat, 24 Aug 2013 21:25:38 +0200
|
||||
#Sat, 24 Aug 2013 21:35:24 +0200
|
||||
|
||||
program.VERSION=3.1
|
||||
program.BUILDNUM=481
|
||||
program.BUILDDATE=08/24/2013 09\:25 PM
|
||||
program.BUILDNUM=482
|
||||
program.BUILDDATE=08/24/2013 09\:35 PM
|
||||
|
@ -1,3 +1,3 @@
|
||||
#Build Number for ANT. Do not edit!
|
||||
#Sat Aug 24 21:25:38 CEST 2013
|
||||
build.number=482
|
||||
#Sat Aug 24 21:35:24 CEST 2013
|
||||
build.number=483
|
||||
|
@ -33,7 +33,7 @@ public class TFM_CommandBlocker
|
||||
return;
|
||||
}
|
||||
|
||||
List<String> _blockedCommands = (List<String>) TFM_ConfigEntry.BLOCKED_COMMANDS.getStringList();
|
||||
List<String> _blockedCommands = (List<String>) TFM_ConfigEntry.BLOCKED_COMMANDS.getList();
|
||||
for (String rawEntry : _blockedCommands)
|
||||
{
|
||||
String[] parts = rawEntry.split(":");
|
||||
|
@ -189,7 +189,7 @@ public class TFM_Config
|
||||
}
|
||||
}
|
||||
|
||||
public List<String> getStringList(TFM_ConfigEntry entry)
|
||||
public List getList(TFM_ConfigEntry entry)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -115,8 +115,8 @@ public enum TFM_ConfigEntry
|
||||
return value;
|
||||
}
|
||||
|
||||
public List<String> getStringList()
|
||||
public List getList()
|
||||
{
|
||||
return TFM_Config.getInstance().getStringList(this);
|
||||
return TFM_Config.getInstance().getList(this);
|
||||
}
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ public class TFM_ServerInterface
|
||||
return;
|
||||
}
|
||||
|
||||
for (String username : TFM_ConfigEntry.UNBANNABLE_USERNAMES.getStringList())
|
||||
for (String username : (List<String>) TFM_ConfigEntry.UNBANNABLE_USERNAMES.getList())
|
||||
{
|
||||
if (username.toLowerCase().trim().equals(name))
|
||||
{
|
||||
|
@ -743,10 +743,9 @@ public class TFM_Util
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public static boolean isFromHostConsole(String sender_name)
|
||||
{
|
||||
return ((List<String>) TFM_ConfigEntry.HOST_SENDER_NAMES.getStringList()).contains(sender_name.toLowerCase());
|
||||
return ((List<String>) TFM_ConfigEntry.HOST_SENDER_NAMES.getList()).contains(sender_name.toLowerCase());
|
||||
}
|
||||
|
||||
public static List<String> removeDuplicates(List<String> old_list)
|
||||
|
Loading…
Reference in New Issue
Block a user