main/ScriptEngine

http://dev.bukkit.org/media/images/75/536/map_bn2.png

The purpose of MAP Scripts was to remove a player data after them being offline for several months.

You need to be an opped player in order to execute MAPS(cripts) as they could but shouldn't be able to delete important server-files!

Place any MAPS into the folder plugins/MikesAdminPlugin/mapscript/. MAPS files need the file extension .maps in order to work.

To run a script on the Server use this command:
/mapscript <SCRIPT> <PLAYER>[/b]
Script is the file name without extension (e.g. /mapscript resetplayer DosMike executes plugins/MikesAdminPlugin/mapscript/resetplayer.maps)

Just write the script line by line using a text editor and click "save as ..." when you're done. Specify a filename followed by .maps and choose "Any File (*.*)" so the file extension wont change.

There are currently 3 commands to use for MAPS

CommandArgumentsDescription
executeCommand and argumentsThis will execute a command as console
deletePath based on Bukkits executable .jar pathThis will delete a file if possible
cleardata%uuid%This will remove the player .dat

You may only delete files that:

  • do not start with a file separator
  • do not end with ".jar"
  • do not end with ".maps"
  • do not end with ".dat" outside the "plugin/"-folder
  • do not contain the word "banned"
  • are not in the main directory
  • are not "ops.json"

The sequences %name% and %uuid% will automatically be replace the the players name or UUID given at the /mapscript command
You may add line comments beginning after a # lasting until a new line begins

Simple example for removing player data:
# MAPS by DosMike
# Script Version 1
execute kick %name% # cleardata won't work if the player is still on
execute unban %name% # we want to get rid of all data. so i'll unban the player
# we could delete essentials or multiverse files here
cleardata %uuid% # this command will ALWAYS look like this

Feel free to post your MAPS into the forum