###Generic Config File###
- Make a config.yml file
- Put it in the /resources folder
- Add
$this->saveDefaultConfig();
$this->reloadConfig();
#!/bin/bash | |
CM_STATUS_JSON=$(curl -s https://status.mojang.com/check) | |
CM_STATUS_TEXT=$(echo "$CM_STATUS_JSON" | grep -o -P "{.*?}" | sed -e "s/\(\"\|{\|}\)//g" -e "s/\:/: /g") | |
CM_STATUS_COLORED=$(echo "$CM_STATUS_TEXT" | sed -e 's/\://g' \ | |
-r -e 's/([^ ]*) (.* )?(.*$)/\3 \1/' \ | |
-e "s/green /$(echo -e '\033[0;32m')/" \ | |
-e "s/red /$(echo -e '\033[0;31m')/" \ |
#!/bin/bash | |
if [[ -w $1 ]]; then | |
nano $@ | |
else | |
sudo nano $@ | |
fi |
#!/bin/bash | |
showHelp() { | |
echo 'Options: | |
-d DIRECTORY download to a specific directory | |
(defaults to ~/Documents/pocketmineCrashes) | |
-h show this help.' | |
} |
#!/bin/bash | |
# | |
# This needs to be set to the Plugin's server directory!! | |
# | |
PP_ServerDirectory="/home/tyler/pocketmine/1.4plugdev" | |
# Just some options for cleaning up before we package. |
"No... I mean, yes... or, actually, kind of.", | |
"... think he's up to the task, maybe... but... but... <sub>no.</sub>", | |
"Oh you poor poor little baby.", | |
"Now this might hurt for juuust a second.", | |
"Oh, well, better late than never, right?", | |
"Lets go! || ...Um, lets, not?", | |
"How dare you? HOW. DARE. YOU?!", | |
"Now what do you have to say for yourself? I Said, What do you have to say for yourself!?", | |
"I don't wanna talk about it.", | |
"Oh, I'm sorry. Uh, am I interupting?", |
The permissions system allows you to control who has access to run commands and make changes to configuration settings.
#Basics
###Permission Ids
Each permission object has a unique id. While technically this id could be anything (minus spaces), its recommended they be in the format type.name
. For example, the command to set a timeout, !settimeout
, uses the permission cmd.settimeout
to determine who is allowed to set a timeout's duration. Plugins may also opt to use permissions for other abilities as well, such as using a timeout.bypass
permission to allow a person to bypass a timeout or even using a permissions object to filter who is included in a raffle.
###Permission Levels/Ranks
This is unofficial documentation for Picarto.tv's service APIs. I'm not responsible for anything you do with this information; it is provided as is with no guarantees.
It looks like there is an official well-documented api now: https://docs.picarto.tv/api/ Please use that instead!