parent
0127d7690c
commit
dc2826f00a
@ -0,0 +1,13 @@ |
|||||||
|
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 |
||||||
@ -0,0 +1,7 @@ |
|||||||
|
name: Diamant-Plugin |
||||||
|
main: DiamantPlugin |
||||||
|
version: 1.0 |
||||||
|
commands: |
||||||
|
diamand: |
||||||
|
description: Platziert einen diamant vor dem Spieler |
||||||
|
usage: /diamant |
||||||
Loading…
Reference in new issue