Njol / Skript

Skript is a Bukkit plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.
http://njol.ch/projects/skript
104 stars 60 forks source link

Ideas for /skript command and script-related events and stuff @EDIT 2 #304

Open T3sT3ro opened 10 years ago

T3sT3ro commented 10 years ago

Please, add "/skript scripts" command to show all scripts in scripts folder - enabled - green with [enabled] prefix, disabled - red with [disabled] prefix @EDIT Some useful things:

some ideas

Expressions/conditions/events/effects:

  • on any script load/unload [when any script is load/unloaded]
  • on load of script named "abc"
  • add script [-s | named "ABC"] to {running::*}
  • send names [-s] of [enabled | disabled] script [-s | named "ABC" ] to player
  • change name of script "ABC" to "xyz"
  • add/remove script "abc" to/from project "Project No.1"
  • kill script/project "abc" - immediately stops script without saving anything
  • (if | while) (script | project ) "ABC" exist[-s]
  • NEW on script move [to | from project "ABC"]

think and write down your ideas :D

GrassyMoss commented 10 years ago

For the reloading as a project suggestion, you can put all the scripts for a "project" into a folder, and with /sk reload , you can reload a specific folder. I do, however, quite like the idea of having a list of enabled scripts. It makes it easier to see which ones are currently being used without having to open the scripts folder.

T3sT3ro commented 10 years ago

But puting the same code in all scripts is unconfortable. I have made prototype of list-of-enabled-scripts, but it is hard to EDIT list ie. When I change name of script it is still on the disabled scripts list and it must be removed manually from {enabled:: *}. Maybe you have better script ? Can u give me link to it ?

Njol commented 10 years ago

Like @GrassyMoss said, you can already put scripts into a folder and enable or disable the whole folder with a single command.

I also like some of the script-related events and stuff (BTW: edited the title).

marium0505 commented 10 years ago

This would be awesome! :D