Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- adventure plugins:
- expand autobroadcast:
- autobc when player LEAVES region
- autobc when player kills boss
- variable plugin:
- variable types: int, boolean
- commands:
- setvar [name] [type] [value]:
- if [name] exists:
- if [type] != [name].[type]:
- chat.log: variable exists as different type, aborting operation.
- return;
- else:
- switch([type]):
- case "int":
- case "bool":
- case "boolean":
- jsonFile.variables[name] = [value] //variables es un diccionario
- break;
- case default:
- chat.log: [type] is not a recognized variable type, please use "int" or "bool".
- break;
- opvar [name] [operation] [value]:
- if [name] !exists:
- chat.log: variable [name] doesn't exist.
- return;
- else:
- switch([operation]):
- case "sum":
- try{
- jsonFile.variables.[name] += [value]
- }catch(){}
- break;
- case "multiply":
- try{
- jsonFile.variables.[name] *= [value]
- }catch(){}
- break;
- case "divide":
- try{
- jsonFile.variables.[name]=(int) (jsonFile.variables.[name]/[value])
- }catch(){}
- break;
Advertisement
Add Comment
Please, Sign In to add comment