Command Variables
CommandVariables 1.0 TEST VERSION
Description
With this plugin you can create variables,global,public and private variables which will be replaced in the command.
Usage
Variable creating
Create a variable like: /var test 0_64_0 3
This will create a variable called test,with value "0 64 0" ("_" gets replaced with " ") with type private.
Now the default prefix and suffix is "$",you can change it in the config if you want.
Type a command like "/tppos $test$" if you have Essentials,then this command will teleport you to coordinate: 0x 64y 0z.
Variable removing
As first you need a variable.
If you have variable skip this command.
/var removeme newboyhun 1
So if you have a variable just simply use this command:
/var remove removeme
Variable editing
It's easy as one,two,three.
Just type it like at variable creating.
Like we have a variable:
/var test newboyhun 1
For editing just retype the command:
/var test changedvalue 2
This changes the newboyhun to changedvalue and global to public.
If you only want to change type or value:
/var test {{current}} 3
This will change the variable's type to private,but the value remains.
Configuration
Configuration file can be found in 'plugins/CommandVariables/' folder.
In the file you can change the variables,if you think it's faster the in-game creating/editing/removing.
You can change prefix and suffix to.
Requirements
Vault
Commands
/var <variablename> <value> <type> >>> Creates/edites a variable.
/var list <type> <page> >>> List the variables in type <type>
/var list <playername> <type> <page> >>> List the player's variables.
/var remove <variablename> >>> Removes a variable.
/var suffix <value> >>> Changes the suffix.
/var prefix <value> >>> Changes the prefix
/var space <value> >> Changes the space.
Permissions
cv.var >>> Without this permission player can't use the command.
cv.create.global >>> Create global variable.
cv.create.public >>> Create public variable.
cv.create.private >>> Create private variable.
cv.edit.global >>> Edit global variable.
cv.edit.public >>> Edit public variable.
cv.edit.private >>> Edit private variable.
cv.remove.global >>> Remove global variable.
cv.remove.public >>> Remove public variable.
cv.remove.private >>> Remove private variable.
cv.list.global >>> List global variables.
cv.list.public >>> List public variables.
cv.list.private >>> List private variables.
cv.edit.public.others >>> Edit other's public variable.
cv.edit.private.others >>> Edit other's private variable.
cv.remove.public.others >>> Remove other's public variable.
cv.remove.private.others >>> Remove other's private variable.
cv.list.public.others >>> List other's public variable.
cv.list.private.others >>> List other's private variable.
cv.suffix >>> Change space.
cv.prefix >>> Change prefix.
cv.space >>> Change space.
Variable types
Global(1) >>> Everyone can use/edit it.
Public(2) >> Everyone can use it,but only the creator can edit it.
Private(3) >> Only the creator can use/edit it.
Installation
Download latest file and put it in your 'plugins/' folder.
Then restart your server or load it with PlugMan or with other plugin manager.
TO DO
Rewrite usage message.
Fix bugs.
Comments