Skip to content

Instantly share code, notes, and snippets.

@nijikokun
Created July 24, 2011 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nijikokun/1102239 to your computer and use it in GitHub Desktop.
Save nijikokun/1102239 to your computer and use it in GitHub Desktop.
What do you think? I liek turtles. I kinda just edited a example plugin.
# I'm here with Johnathan who just got his face painted and...
# What do you think?
Plugin.is {
name "Turtles"
version "0.1"
author "Nijikokun"
commands :turtle => {
:usage => "/turtle - What do you think?"
}
}
# Use Permissions?
require 'bukkit/permissions'
# Plugin
class Turtles < RubyPlugin
def onEnable
print "[" + description.name + "] " + description.fullName + " enabled."
end
def onDisable; print "Bai bai turtles..."; end
def onCommand(sender, command, label, args)
if !sender.isPlayer || sender.has("rubybukkit.turtles") then
sender.chat ilike
end
true
end
def ilike
"i liek turtles"
end
end
@bartenbach
Copy link

HERE LIVE AT THE WATERFRONT VILLAGE WITH MY FRIEND THE ZOMBIE, JONATHON YOU'RE LOOKIN GOOD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment