You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
314 B
13 lines
314 B
class DiamantPlugin(PythonPlugin):
|
|
def onEnable(self):
|
|
pass
|
|
|
|
def onCommand(self, sender, command, label, args):
|
|
position = sender.getLocation()
|
|
position.setX(position.getX() + 2)
|
|
|
|
welt = sender.getWorld()
|
|
block = welt.getBlockAt(position)
|
|
block.setType(bukkit.Material.DIAMOND)
|
|
|
|
return True
|
|
|