Class OfflineAdminlevel

All Implemented Interfaces:
Script

public class OfflineAdminlevel extends AbstractOfflineAction
Changes the admin level of an offline player.
Author:
hendrik
  • Constructor Details

    • OfflineAdminlevel

      public OfflineAdminlevel()
  • Method Details

    • validateParameters

      public boolean validateParameters(Player admin, List<String> args)
      validates the parameters, sends an error message, if something is wrong with them
      Specified by:
      validateParameters in class AbstractOfflineAction
      Parameters:
      admin - admin executing the script
      args - arguments for the script
      Returns:
      true if the parameters are valid, false otherwise
    • process

      public void process(Player admin, RPObject object, List<String> args)
      processes the requested operation on the loaded object
      Specified by:
      process in class AbstractOfflineAction
      Parameters:
      admin - admin executing the script
      object - the RPObject of the player loaded from the database
      args - arguments for the script