Pluseins plugin
This commit is contained in:
12
pluseins.py.dir/plugin.py
Normal file
12
pluseins.py.dir/plugin.py
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
class PluseinsPlugin(PythonPlugin):
|
||||||
|
def onEnable(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def onCommand(self, sender, command, lable, args):
|
||||||
|
eingabe = args[0]
|
||||||
|
zahl = int(eingabe)
|
||||||
|
zahl = zahl + 1
|
||||||
|
ausgabe = str(zahl)
|
||||||
|
self.getServer().broadcastMessage("Das Ergebnis ist " + ausgabe
|
||||||
|
return True
|
||||||
|
|
||||||
7
pluseins.py.dir/plugin.yml
Normal file
7
pluseins.py.dir/plugin.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
name:Pluseins-Plugin
|
||||||
|
main:Pluseins-Plugin
|
||||||
|
version:1.0
|
||||||
|
commands:
|
||||||
|
pluseins:
|
||||||
|
description: Addiert 1 zur angeben Zahl und gibt das Ergebnis aus
|
||||||
|
usage: /pluseins <zahl>
|
||||||
Reference in New Issue
Block a user