Skip to content

Instantly share code, notes, and snippets.

View CaptainDuck's full-sized avatar

CaptainDuck CaptainDuck

View GitHub Profile
@CaptainDuck
CaptainDuck / pocketmine.phar.conf
Last active November 3, 2019 07:57
Multicraft PHP7 PocketMine
[config]
name = PocketMine-MP [PHP7]
source = https://jenkins.pmmp.io/job/PocketMine-MP/lastSuccessfulBuild/artifact/PocketMine-MP.phar
configSource = http://cdn.pocketmine.net/multicraft/pocketmine.phar.conf
[start]
command = "{JAR_DIR}/pocketmine/bin/php7/bin/php" "{JAR_DIR}/PocketMine-MP.phar" "{JAR}" --memory-limit={MAX_MEMORY}M --disable-ansi --data="{SERVER_DIR}"/PocketMine --plugins="{SERVER_DIR}/plugins"/PocketMine --level-name="{WORLD}" --server-ip="{IP}" --server-port={PORT} --max-players={MAX_PLAYERS}
## Plugin configuration
@CaptainDuck
CaptainDuck / commands.md
Created September 8, 2016 08:17 — forked from shoghicp/commands.md
Some interesting commands to play with the new NBT support for items.

Items with custom name

give sho stick 1 {display:{Name:"§r§6§lNormal stick"}}

Items with enchantments

give sho gold_sword 1 {ench:[{id:9s,lvl:2s}]}
#If FactionsPro is installed..
$this->factionspro = $this->getServer()->getPluginManager()->getPlugin("FactionsPro");
#Get Faction Name
$this->factionspro->getPlayerFaction($player->getName()),
#Get Faction Player Rank
if($this->factionspro->getSession($player)->isOfficer()){
return ' ';
}