Skip to content

Instantly share code, notes, and snippets.

@tehbeard
tehbeard / plugin.yml
Created January 7, 2012 00:01 — forked from Serubin/plugin.yml
permissions of ExPeMe
permissions:
expeme.*:
description: gives full permission on expeme.
children:
expeme.view: true
expeme.add.other: true
expeme.add.other:
childern:
expeme.add: true
expeme.sub.other: true
@tehbeard
tehbeard / plugin.yml
Created January 7, 2012 00:01 — forked from Serubin/plugin.yml
permissions of ExPeMe
permissions:
expeme.*:
description: gives full permission on expeme.
expeme.view: true
children:
expeme.add.other: true
childern:
expeme.add: true
expeme.sub.other: true
children:
#####ESCAPEPLUG
HatmeCommand hatMe = new HatmeCommand(this);
########HatmeCommand
EscapePlug plugin;
alias:
-"/god"
-"vanish"
derplorn: <-- command alias to enter
-"/s Silly vallorn"
-"/ban Vallorn OH GOD THE LAVA"
public HatmeCommand(List<Integer> rbBlocks, boolean rbAllow, String notAllowedMsg, boolean rbOp){
this.rbBlocks = rbBlocks;
this.rbAllow = rbAllow;
this.notAllowedMsg = notAllowedMsg;
this.rbOp = rbOp;
}
log.info("[EscapePlug] loading hatMe");
//get Config
List<Integer> rbBlocks = getConfig().getList("plugin.hatme.allowed");
boolean rbAllow = getConfig().getBoolean("plugin.hatme.enable");
String notAllowedMsg = getConfig().getString("plugin.hatme.notAllowedMsg");
boolean rbOp = getConfig().getBoolean("plugin.hatme.opnorestrict");
//construct command and assign to /hat and /unhat
CommandExecutor hatMe = new HatmeCommand(rbBlocks,rbAllow,rbAllowed,rbOp);
[WARNING] Some problems were encountered while building the effective model for me.tehbeard:BeardStat:jar:0.0.1-SNAPSHOT
[WARNING] 'dependencies.dependency.type' for org.bukkit:bukkit:jar must be 'pom' to import the managed dependencies. @ line 9, column 16
[WARNING] 'dependencies.dependency.scope' for org.bukkit:bukkit:jar must be one of [provided, compile, runtime, test, system] but is 'import'. @ line 13, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
@tehbeard
tehbeard / gist:1449287
Created December 8, 2011 23:43
Potion values
16 - Awkward pot
32 - Glowstone boost
64 - redstone boost
128 - NEEDED FOR SPLASH
8192 - Unbrewable
16384 - Splash pot
package BeardBar;
import org.bukkit.Bukkit;
import org.bukkit.event.Event;
import org.bukkit.event.Event.Type;
import org.bukkit.event.player.PlayerListener;
import org.bukkit.event.player.PlayerLoginEvent;
import me.tehbeard.BeardBar.AbstractComponent;
import me.tehbeard.BeardBar.BeardBar;
import me.tehbeard.BeardBar.annotations.BukkitEvent;
public class SimpleReserve extends AbstractComponent{
@tehbeard
tehbeard / gist:1292348
Created October 17, 2011 10:24
MC RCON (1.9pr4)
<?php
/*
RCON remote console class, modified for minecraft compability by Tehbeard.
!!!YOU MUST CONFIGURE RCON ON YOUR MINECRAFT SERVER FOR THIS TO WORK
AT TIME OF WRITING ONLY 1.9pr4+ HAVE BUILTIN RCON SUPPORT!!!
Example Code:
============
include_once("rcon.class.php"); //Include this file