Skip to content

Instantly share code, notes, and snippets.

proc essai {nick host hand chan text} {
if {[lsearch -exact [channel info $chan] "essai"] == -1} { return }
if {[isvoice $nick $chan] || [isop $nick $chan] } {
return
}
if {[regexp -nocase {(Could.not.pass.event)} $text]} {
essaiout $nick $chan "\00304\[\00312Automsg\00304\]\003 Could not pass event errors are generally caused by using out of date copies of plugins/bukkit. It can also be caused by other broken plugins. Check your server startup log for errors."
} elseif {[regexp -nocase {(internal.error)} $text]} {
essaiout $nick $chan "\00304\[\00312Automsg\00304\]\003 If you have internal errors, please check your server log, if you can't understand it, pastebin the error so we can see."
<?php
include '../vendor/autoload.php';
use ThreadMeUp\Slack\Client;
$config = array(
'token' => 'xxx',
'team' => 'mc-ess',
'username' => 'Lain',
'icon' => ':8ball:', // Auto detects if it's an icon_url or icon_emoji
<?php
define('INEXT', 'i55');
define('INEXTWHEN', '2015-08-27 18:00:00');
include("config.php");
$incoming = $slack->listen();
if ($incoming)
{
@khobbits
khobbits / tcl.tcl
Last active August 29, 2015 14:12 — forked from chrisgward/tcl.tcl
proc khtcl {nick host hand chan arg} {
set khtclctx [getctx]
if { [getbncuser $khtclctx tag tclbot] != "1" } { return }
set lines 4
set first [lindex [split $arg " "] 0]
set skipempty 1
if {$first == "-v"} {
set arg [string range $arg 3 end]
[17:57:04] [Server thread/DEBUG]: Opening connection to https://api.mojang.com/profiles/minecraft
[17:57:04] [Server thread/DEBUG]: Writing POST data to https://api.mojang.com/profiles/minecraft: ["icelord09","firedg4"]
[17:57:04] [Server thread/DEBUG]: Reading data from https://api.mojang.com/profiles/minecraft
[17:57:04] [Server thread/DEBUG]: Successful read, server response was 200
[17:57:04] [Server thread/DEBUG]: Response: [{"id":"3ad28e088d184050ab778617eec48de4","name":"Icelord09"},{"id":"fa50ee2e96e148d68e81b5c63a44bdb1","name":"FireDG4"}]
[17:57:04] [Server thread/DEBUG]: Page 0 returned 2 results, parsing
[17:57:04] [Server thread/DEBUG]: Successfully looked up profile net.minecraft.util.com.mojang.authlib.GameProfile@579b7698[id=3ad28e08-8d18-4050-ab77-8617eec48de4,name=Icelord09,properties={},legacy=false]
[17:57:04] [Server thread/DEBUG]: Successfully looked up profile net.minecraft.util.com.mojang.authlib.GameProfile@1f872217[id=fa50ee2e-96e1-48d6-8e81-b5c63a44bdb1,name=FireDG4,properties={},le
package com.earth2me.essentials.commands;
import com.earth2me.essentials.ChargeException;
import com.earth2me.essentials.Trade;
import com.earth2me.essentials.Trade.OverflowType;
import com.earth2me.essentials.User;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
############################################################
# +------------------------------------------------------+ #
# | Notes | #
# +------------------------------------------------------+ #
############################################################
# If you want to use special characters in this document, such as accented letters, you MUST save the file as UTF-8, not ANSI.
# If you receive an error when Essentials loads, ensure that:
# - No tabs are present: YAML only allows spaces
# - Indents are correct: YAML hierarchy is based entirely on indentation
@khobbits
khobbits / gist:7057022
Created October 19, 2013 14:58
Example java
/*******************************************************************************
* This version of WindowCleaner sorts and searches the invoice file.
*
* @author Paul McCard
* @version 0.1 (3 April 2005)
******************************************************************************/
class WindowCleaner8
{
// INSTANCE VARIABLES ******************************************************
donate_gold:
default: false
permissions:
- essentials.fly
- essentials.workbench
- essentials.enderchest
inheritance: []
info: []
donate_diamond:
@khobbits
khobbits / Overridable
Last active December 20, 2015 14:09
Overridable functions
If you require more customization than this, feel free to drop in a more customizable plugin
which offers this feature. The goal of the Essentials plugin is to provide a 'defacto' solution
to almost all server administrative problems. This means providing a solution which will work
for most servers, while allowing server owners to override or replace functionality with other
plugins. Almost all elements of Essentials are coded with this in mind and can be disabled or
overridden, often by default.
We actively cooperate and test Essentials with common replacement plugins, such as VanishNoPacket,
which can replace the built in /vanish command with a version which is much more customizable version.
If you enable the Essentials hook, the player will be hidden from all commands as if they used