Class Unblock

All Implemented Interfaces:
TurnListener, Script

public class Unblock extends ScriptImpl implements TurnListener
Moves players away that spend to much time in an restricted area
Author:
hendrik
  • Constructor Details

    • Unblock

      public Unblock()
  • Method Details

    • onTurnReached

      public void onTurnReached(int currentTurn)
      checks
      Specified by:
      onTurnReached in interface TurnListener
      Parameters:
      currentTurn - current turn number
    • execute

      public void execute(Player admin, List<String> args)
      executes the script
      Specified by:
      execute in interface Script
      Overrides:
      execute in class ScriptImpl
      Parameters:
      admin - the admin who load it or null on server start.
      args - the arguments the admin specified or null on server start.
    • unload

      public void unload(Player admin, List<String> args)
      Description copied from interface: Script
      Unloads this script.
      Specified by:
      unload in interface Script
      Overrides:
      unload in class ScriptImpl
      Parameters:
      admin - the admin who load it or null on server start.
      args - the arguments the admin specified or null on server start.