Skip to content

Instantly share code, notes, and snippets.

View Bakies's full-sized avatar
❤️‍🔥
Cruising

Jon Bakies Bakies

❤️‍🔥
Cruising
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bakies on github.
  • I am bakies (https://keybase.io/bakies) on keybase.
  • I have a public key ASA6In19CME6QZGNt-PIEdKfXcRZXnZ3qHLaGwyyWQBq1go

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am bakies on github.
* I am bakies (https://keybase.io/bakies) on keybase.
* I have a public key whose fingerprint is A2D6 CC75 E56B EC67 44AE 9976 E973 9A22 E40D C8AF
To claim this, I am signing this object:
@EventHandler
public void onPlayerInteract1(PlayerInteractEvent e) {
if (e.getAction() == Action.LEFT_CLICK_BLOCK) {
Block b = e.getClickedBlock();
if(b.getType() == Material.WALL_SIGN || b.getType() == Material.SIGN_POST) {
// Begin pseudo-code
ResultSet res = sqlQuery("SELECT command FROM signs WHERE x= " + b.getX() + " AND y=" + b.getY() + " AND z=" + b.getZ());
if(res != null){
Bukkit.dispatchCommand(e.getPlayer(), res.getString(1)); // res.getString(0)? res.getString("command")?
}
@Bakies
Bakies / irc.py
Created June 18, 2012 00:10
Python connect to IRC
import socket, string, time, thread
SERVER = ''
PORT = 6667
NICKNAME = ''
CHANNEL = ''
def main():
global IRC
IRC = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
IRC.connect((SERVER, PORT))