Diamant plugin
This commit is contained in:
13
diamant.py.dir/plugin.py
Normal file
13
diamant.py.dir/plugin.py
Normal file
@@ -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
|
||||||
7
diamant.py.dir/plugin.yml
Normal file
7
diamant.py.dir/plugin.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
name: Diamant-Plugin
|
||||||
|
main: DiamantPlugin
|
||||||
|
version: 1.0
|
||||||
|
commands:
|
||||||
|
diamand:
|
||||||
|
description: Platziert einen diamant vor dem Spieler
|
||||||
|
usage: /diamant
|
||||||
Reference in New Issue
Block a user