2022-11-03 01:29:26 +00:00
package net.t2code.opsecurity.config.opWhitelist ;
2022-11-03 18:15:07 +00:00
import net.t2code.opsecurity.enums.ConfigParam ;
2022-11-09 22:20:25 +00:00
import org.bukkit.GameMode ;
2022-11-03 01:29:26 +00:00
import java.util.Arrays ;
import java.util.List ;
public enum OPWhitelist {
enable ( " opWhitelist.enable " , false , ConfigParam . BOOLEAN ) ,
playerMustBeOnlineToOp ( " opWhitelist.playerMustBeOnlineToOp " , true , ConfigParam . BOOLEAN ) ,
noOpPlayerDeopEnable ( " opWhitelist.enable " , true , ConfigParam . BOOLEAN ) ,
noOpPlayerDeopPlayerSendMessage ( " opWhitelist.noOpPlayerDeop.playerSendMessage " , true , ConfigParam . BOOLEAN ) ,
noOpPlayerKickEnable ( " opWhitelist.noOpPlayerKick.enable " , true , ConfigParam . BOOLEAN ) ,
2022-11-09 22:20:25 +00:00
noOpPlayerSetGameModeEnable ( " opWhitelist.noOpPlayerSetGameMode.enable " , true , ConfigParam . BOOLEAN ) ,
noOpPlayerSetGameModeValue ( " opWhitelist.noOpPlayerSetGameMode.gameMode " , GameMode . SURVIVAL , ConfigParam . GAMEMODE ) ,
2022-11-03 01:29:26 +00:00
customCommandsEnable ( " opWhitelist.customCommands.enable " , false , ConfigParam . BOOLEAN ) ,
customCommandsCommands ( " opWhitelist.customCommands.commands " , Arrays . asList ( " kick [player] &4You have op but are not authorized to do so, that's why you were kicked! " )
, ConfigParam . STRINGLIST ) ,
player ( " opWhitelist.whitelist " , " opWhitelist.whitelist.KEY.name " , " opWhitelist.whitelist.KEY.uuid " , " PlayerName " , " 00000000000000000000000000000000 " , ConfigParam . PLAYERLIST ) ;
public String path ;
public String pathPlayerListPath ;
public String pathPlayerName ;
public String pathPlayerUuid ;
public String valuePlayerName ;
public String valuePlayerUuid ;
public List < String > valueStringList ;
2022-11-03 18:15:07 +00:00
2022-11-03 01:29:26 +00:00
public Boolean valueBoolean ;
2022-11-09 22:20:25 +00:00
public GameMode valueGameMode ;
2022-11-03 01:29:26 +00:00
public ConfigParam cEnum ;
2022-11-09 22:20:25 +00:00
OPWhitelist ( String path , GameMode value , ConfigParam cEnum ) {
this . path = path ;
this . valueGameMode = value ;
this . cEnum = cEnum ;
}
2022-11-03 01:29:26 +00:00
OPWhitelist ( String listPath , String pathPlayerName , String pathUuid , String playerName , String uuid , ConfigParam cEnum ) {
this . pathPlayerListPath = listPath ;
this . pathPlayerName = pathPlayerName ;
this . pathPlayerUuid = pathUuid ;
this . valuePlayerName = playerName ;
this . valuePlayerUuid = uuid ;
this . cEnum = cEnum ;
}
OPWhitelist ( String path , List < String > value , ConfigParam cEnum ) {
this . path = path ;
this . valueStringList = value ;
this . cEnum = cEnum ;
}
OPWhitelist ( String path , Boolean value , ConfigParam cEnum ) {
this . path = path ;
this . valueBoolean = value ;
this . cEnum = cEnum ;
}
}