Created
July 24, 2011 04:23
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HERE LIVE AT THE WATERFRONT VILLAGE WITH MY FRIEND THE ZOMBIE, JONATHON YOU'RE LOOKIN GOOD