-
Notifications
You must be signed in to change notification settings - Fork 0
/
FunAliases.py
104 lines (78 loc) · 3.26 KB
/
FunAliases.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
from Helper import color
import org.bukkit as bukkit
# TODO:
# /sound
# Animal Sounds
def broadcast_animal_sound(sender, message):
bukkit.Bukkit.broadcastMessage(''.join([color("e"), sender.getName(), " ", color("f"), message]))
@hook.command("lemur", description="Bark like a lemur!")
def onCommandLemur(sender, args):
broadcast_animal_sound(sender, "Barks and screeches like a lemur!")
return True
@hook.command("moo", description="Moo like a cow!")
def onCommandMoo(sender, args):
broadcast_animal_sound(sender, "Moos like a cow!")
return True
@hook.command("oink", description="Oink like a pig!")
def onCommandOink(sender, args):
broadcast_animal_sound(sender, "Oinks like a pig!")
return True
@hook.command("cluck", description="Cluck like a chicken!")
def onCommandCluck(sender, args):
broadcast_animal_sound(sender, "Clucks like a chicken!")
return True
@hook.command("bark", description="Bark like a dog!")
def onCommandBark(sender, args):
broadcast_animal_sound(sender, "Barks like a dog!")
return True
@hook.command("baa", description="Baa like a sheep!")
def onCommandBaa(sender, args):
broadcast_animal_sound(sender, "Baas like a sheep!")
return True
@hook.command("brains", description="Brains like a zombie!")
def onCommandBrains(sender, args):
broadcast_animal_sound(sender, "BRAAAAAAAAAAINS like a zombie!")
return True
@hook.command("sss", description="SSS like a creeper!")
def onCommandSss(sender, args):
broadcast_animal_sound(sender, "SSSSSSSSsssssssssssss-s like a creeper!")
return True
# General
@hook.command("confused", description="Have ALL the confusion!")
def onCommandConfused(sender, args):
broadcast_animal_sound(sender, "has ALL THE CONFUSION!")
return True
@hook.command("nope", description="Nope.avi")
def onCommandNope(sender, args):
sender.sendMessage("Chuck Testa!")
return True
@hook.command("lag", description="Fix the server's lag!")
def onCommandLag(sender, args):
sender.kickPlayer("No more lag! <3 RSW :3")
return True
@hook.command("join", description="Make someone join the server!", usage="/<command> <player> [location]")
def onCommandJoin(sender, args):
if len(args) < 1:
return False
bukkit.Bukkit.broadcastMessage(''.join([color("e"), args[0], " joined the game"]))
if len(args) > 1:
bukkit.Bukkit.broadcastMessage(''.join(["Player ", args[0], " comes from ", args[1]]))
return True
@hook.command("leave", description="Make someone leave the server!", usage="/<command> <player>")
def onCommandLeave(sender, args):
if len(args) < 1:
return False
bukkit.Bukkit.broadcastMessage(''.join([color("e"), args[0], " left the game"]))
return True
@hook.command("hat", description="Get the most fashionable hat!")
def onCommandHat(sender, args):
sender.getInventory().setHelmet(sender.getItemInHand())
sender.getInventory().removeItem(sender.getItemInHand())
sender.sendMessage("Look at your hat, your hat is amazing!")
return True
@hook.command("huzza")
def onCommandHuzza(sender, args):
# TODO: Add support for custom name colors
bukkit.Bukkit.broadcastMessage(''.join([sender.getName(), color("f"), " Yells: HUZZA!"]))
bukkit.Bukkit.dispatchCommand(sender, "suicide")
return True