Package com.github.mafelp.Manager
Class SkribblManager
java.lang.Object
com.github.mafelp.Manager.SkribblManager
public class SkribblManager
extends java.lang.Object
The class that tasks that have to do something with the skribbl words.
- 
Field Summary
Fields Modifier and Type Field Description private static org.apache.logging.log4j.LoggerloggerThe logging instance to log statements to the console and the log file.private static java.util.Map<org.javacord.api.entity.server.Server,java.util.List<java.lang.String>>skribblWordMapThe map with all the skribbl words sorted by a server. - 
Constructor Summary
Constructors Constructor Description SkribblManager() - 
Method Summary
Modifier and Type Method Description static voidaddSkribblWord(org.javacord.api.entity.server.Server server, java.lang.String word)Added a new skribbl word to a server.static java.util.List<java.lang.String>getSkribblWords(org.javacord.api.entity.server.Server server)The function that gets all the skribbl words from server.static booleanremoveSkribblWord(org.javacord.api.entity.server.Server server, java.lang.String word)Removes a word from the list of skribbl words.static voidresetSkribblWords(org.javacord.api.entity.server.Server server)Resets the skribbl words for a server.static voidsaveSkribblWords(org.javacord.api.entity.server.Server server)Saves the skribbl words for a specific server.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Field Details
- 
logger
private static final org.apache.logging.log4j.Logger loggerThe logging instance to log statements to the console and the log file. - 
skribblWordMap
private static final java.util.Map<org.javacord.api.entity.server.Server,java.util.List<java.lang.String>> skribblWordMapThe map with all the skribbl words sorted by a server. 
 - 
 - 
Constructor Details
- 
SkribblManager
public SkribblManager() 
 - 
 - 
Method Details
- 
getSkribblWords
public static java.util.List<java.lang.String> getSkribblWords(org.javacord.api.entity.server.Server server)The function that gets all the skribbl words from server.- Parameters:
 server- The server to get the skribbl words of.- Returns:
 - The skribbl words.
 
 - 
saveSkribblWords
public static void saveSkribblWords(org.javacord.api.entity.server.Server server)Saves the skribbl words for a specific server.- Parameters:
 server- The server to save the skribbl words of.
 - 
addSkribblWord
public static void addSkribblWord(org.javacord.api.entity.server.Server server, java.lang.String word)Added a new skribbl word to a server.- Parameters:
 server- The server to add the word to.word- the word you want to add.
 - 
removeSkribblWord
public static boolean removeSkribblWord(org.javacord.api.entity.server.Server server, java.lang.String word)Removes a word from the list of skribbl words.- Parameters:
 server- The server to remove the word from.word- The word you want to be removed.- Returns:
 - If the word was removed. If false, that means that the word didn't exist in the first place.
 
 - 
resetSkribblWords
public static void resetSkribblWords(org.javacord.api.entity.server.Server server)Resets the skribbl words for a server.- Parameters:
 server- The server you want to reset the words off.
 
 -