Uses of Class
dev.le_app.mcss_api_java.exceptions.APINotFoundException
Packages that use APINotFoundException
-
Uses of APINotFoundException in dev.le_app.mcss_api_java
Methods in dev.le_app.mcss_api_java that throw APINotFoundExceptionModifier and TypeMethodDescriptionvoidTask.changeName(String newName) Change the task nameScheduler.createFixedTimeTask(String Name, Boolean Enabled, Boolean repeating, LocalTime time, Job job) Create a new Fixed Time taskScheduler.createIntervalTask(String Name, Boolean Enabled, Boolean repeating, int interval, Job job) Create a new Interval TaskScheduler.createTimelessTask(String Name, Boolean Enabled, Job job) Create a new Interval TaskvoidBackup.deleteBackup()Delete the backup - NOTE: This won't delete the backup files, just the backup information in MCSSvoidTask.deleteTask()Delete the task from the APIvoidServer.executeServerAction(ServerAction action) Execute a power action on the server.voidServer.executeServerCommand(String command) Executes a command on a servervoidServer.executeServerCommands(String... commands) Executes multiple commands on the serverBackupJob.getAction()abstract ServerActionJob.getAction()Get the action of the task.ServerActionJob.getAction()Get the action of the job.BackupJob.getBackupGUID()Get the Backup ID of the backup executed by the taskabstract StringJob.getBackupGUID()Get the Backup ID of the backup executed by the taskServer.getBackups()Get a list of backups for this serverBackupJob.getCommands()Job.getCommands()Get the commands of the task.RunCommandsJob.getCommands()Get an array list of commands that the task executesServerActionJob.getCommands()String[]Server.getConsole(int lines) Get last console linesString[]Server.getConsole(int lines, boolean takeFromBeginning, boolean reversed) Get last console lines, with the ability to take the lines from the beginning of the console instead of the end and the ability to reverse the console linesString[]Server.getConsoleFromBeginning(int lines, boolean takeFromBeginning) Get last console lines, with the ability to take the lines from the beginning of the console instead of the endString[]Server.getConsoleReversed(int lines, boolean reversed) Get last console lines, with the ability reverse the lines of the consoleintServer.getCpuUsage()Get the server CPU usage - this value is updated with every method runlongTask.getInterval()Get the interval information for the Task.Task.getJob()Backup.getLastBackupState()Gets the last backup state of the backup This value is updated every time the method is run, hence why all the other exceptionsintServer.getMemoryLimit()Get the server memory limit - this value is updated with every method runintServer.getOnlinePlayers()Get the number of online players on the server - this value is updated with every method runintServer.getPlayerLimit()Get the player limit on the server - this value is updated with every method runintServer.getRamUsage()Get the server RAM usage - this value is updated with every method runServer.getServerIcon()Get the server icon - this value is updated with every method runMCSSApi.getServers()Get the list of serversServer.getStartDate()Get the server start time - Uses default system timezone to calculate! - this value is updated with every method runServer.getStatus()Scheduler.getTasks()Get an arraylist of all the tasksTask.getTime()Get the timing information for the Task.intScheduler.getTotalTaskAmount()Get total task numberintScheduler.getTotalTaskAmount(TaskType filter) Get number of tasks matching filterbooleanServer.isConsoleOutdated(String secondLastLine, String lastLine) Check if the console is outdatedbooleanTask.isRepeating()Check if the task repeats at the set interval/fixed timevoidBackup.runBackup()Manually run a backupvoidTask.runTask()Manually run the taskBackupJob.setAction(ServerAction action) abstract JobJob.setAction(ServerAction action) Set the new action to executeServerActionJob.setAction(ServerAction action) The action to be performed on the server.voidServer.setAutostart(boolean autostart) Set if the server autostarts with mcssBackupJob.setBackupGUID(String backupGUID) abstract JobJob.setBackupGUID(String backupGUID) Set the new backup to executevoidBackup.setBackupName(String backupName) Sets the backup nameBackupJob.setCommands(String... commands) abstract JobJob.setCommands(String... commands) Set the new commands to executeRunCommandsJob.setCommands(String... commands) Update the commands to be executed by the taskServerActionJob.setCommands(String... commands) voidBackup.setCompressionType(BackupCompressionType compressionType) Sets the compression type of the backupvoidBackup.setDeleteOldBackups(boolean deleteOldBackups) Sets if old backups should be deleted (following MCSS config)voidServer.setDescription(String description) Set the server descriptionvoidBackup.setDestination(String destination) Sets the destination of the backupvoidTask.setDisabled()Disables the taskvoidTask.setEnabled()Enables the taskvoidBackup.setFileBlacklist(String... fileBlacklist) Sets the file blacklist for the backupvoidBackup.setFileBlacklist(ArrayList<String> fileBlacklist) Sets the file blacklist for the backupvoidBackup.setFolderBlacklist(String... folderBlacklist) Sets the folder blacklist for the backupvoidBackup.setFolderBlacklist(ArrayList<String> folderBlacklist) Sets the folder blacklist for the backupvoidServer.setForceSaveOnStop(boolean forceSaveOnStop) Change if the server is forced to save when stoppingvoidTask.setInterval(long newInterval) Change the interval of an Interval taskvoidServer.setJavaAllocatedMemory(int javaAllocatedMemory) Change the java allocated memory - This applies after a server restartvoidServer.setKeepOnline(KeepOnline keepOnline) Set the new KeepOnline behaviourvoidSet the server namevoidTask.setPlayerRequirement(PlayerRequirement playerRequirement) voidTask.setRepeating(boolean repeat) Set the task to repeatvoidBackup.setSuspendServer(boolean suspendServer) Sets if the backup should suspend the server (shutdown) before creating the backupvoidvoidBackup.updateDetails()Updates all details of the backup from the APIvoidServer.updateDetails()Update the server detailsConstructors in dev.le_app.mcss_api_java that throw APINotFoundException