= Data Structures formatting update
This commit is contained in:
@@ -121,7 +121,7 @@ public abstract class BaseLocFile
|
||||
if(stringStore == null)
|
||||
return input;
|
||||
|
||||
String value = stringStore.GetKey(input);
|
||||
String value = stringStore.getKey(input);
|
||||
if(value == null || value.trim().length() < 1)
|
||||
return input;
|
||||
|
||||
@@ -206,6 +206,6 @@ public abstract class BaseLocFile
|
||||
FileUtils.AcquireAllFiles(KittySourceDirectory).forEach((path) -> TryStripSpecified(path, localizeList));
|
||||
|
||||
for(LocInfo toStub : localizeList)
|
||||
stringStore.AddKeyValue(toStub.file, toStub.phrase, toStub.phrase);
|
||||
stringStore.addKeyValue(toStub.file, toStub.phrase, toStub.phrase);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,8 +66,8 @@ public class CharacterManager
|
||||
}
|
||||
}
|
||||
|
||||
characters.add(new KittyCharacter(user, name, bio, refImage, uniqueID.Get()));
|
||||
uniqueID.Add(1);
|
||||
characters.add(new KittyCharacter(user, name, bio, refImage, uniqueID.get()));
|
||||
uniqueID.add(1);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ public abstract class Command
|
||||
|
||||
//TODO: ADD CHANNEL CHECK HERE
|
||||
|
||||
if(user.GetRole().getValue() >= roleLevel.getValue())
|
||||
if(user.getRole().getValue() >= roleLevel.getValue())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ public class CommandManager
|
||||
public boolean InvokeOnNewThread(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response responseContext)
|
||||
{
|
||||
// This is here to prevent spinning up a thread if this wasn't even a command.
|
||||
if(input == null || !input.IsValid())
|
||||
if(input == null || !input.isValid())
|
||||
return false;
|
||||
|
||||
Command command = commands.get(input.key);
|
||||
@@ -99,7 +99,7 @@ public class CommandManager
|
||||
// Calls the command specified with the key, providing user information arguments, etc.
|
||||
void Invoke(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response responseContext)
|
||||
{
|
||||
if(input == null || !input.IsValid())
|
||||
if(input == null || !input.isValid())
|
||||
return;
|
||||
|
||||
Command command = commands.get(input.key);
|
||||
|
||||
@@ -47,7 +47,7 @@ public class LocCommands extends BaseLocFile
|
||||
public static ArrayList<String> GetUnlocalizedCommands()
|
||||
{
|
||||
ArrayList<String> raw = new ArrayList<>();
|
||||
instance.stringStore.ForEach((pair) -> raw.add((String)((Pair<?, ?>)pair).First ));
|
||||
instance.stringStore.forEach((pair) -> raw.add((String)((Pair<?, ?>)pair).First ));
|
||||
return raw;
|
||||
}
|
||||
|
||||
|
||||
@@ -172,7 +172,7 @@ public class ObjectBuilderFactory
|
||||
{
|
||||
KittyUser cachedUser = userCache.get(uid);
|
||||
if(cachedUser != null)
|
||||
role = cachedUser.GetRole();
|
||||
role = cachedUser.getRole();
|
||||
}
|
||||
|
||||
return role;
|
||||
|
||||
@@ -39,7 +39,7 @@ public class RPManager
|
||||
|
||||
public void addLine(KittyChannel channel, KittyUser user, UserInput input)
|
||||
{
|
||||
if(logs.containsKey(Long.parseLong(channel.uniqueID)) && !input.IsValid())
|
||||
if(logs.containsKey(Long.parseLong(channel.uniqueID)) && !input.isValid())
|
||||
logs.get(Long.parseLong(channel.uniqueID)).addLine(user, input.message);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user