Skip to content

Instantly share code, notes, and snippets.

@xZise
Created November 16, 2011 10:53
Show Gist options
  • Select an option

  • Save xZise/1369808 to your computer and use it in GitHub Desktop.

Select an option

Save xZise/1369808 to your computer and use it in GitHub Desktop.
Example methods configuration file
function name(player, event, parameters) {
return player.getName();
}
script:
nm-file:
engine: javascript
parameters: #by default: [0, -1]
- 0
recursive: false #by default: true
method: name #by default: call
file: plugins/Login Message/example.js
nm-inline:
engine: javascript
parameters:
- 0
recursive: false
method: call
code: |
function call(player, event, parameters) {
return player.getName();
}
alias:
ol:
calls: "onlist($0;,$1;)"
parameters: 2
redirect:
ifeq:
calls: ifequals
parameters:
- 3
- 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment