Diamant plugin

This commit is contained in:
2023-02-08 10:29:31 -05:00
parent 0127d7690c
commit dc2826f00a
2 changed files with 20 additions and 0 deletions

13
diamant.py.dir/plugin.py Normal file
View 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

View File

@@ -0,0 +1,7 @@
name: Diamant-Plugin
main: DiamantPlugin
version: 1.0
commands:
diamand:
description: Platziert einen diamant vor dem Spieler
usage: /diamant