PointShop
This plugin allows players to buy items, commands and more with Points. PlayerPoints is needed for this.
This Plugin is continued here:
Features:
- Buy items/itemsets
- Add subcodes (like colored wool), damage and enchantments to items
- Buy cmds/doubleCmds/cmdSets
- Buy perms/permSets/timePerms
- TimePermissions : After the configurable time, the permissions will be removed
- Trade points with money
- Configurable (you can add/remove infinite cmds/items/permissions)
- Permissions Support
- Add configurable prices
- Economy Support (Vault is needed) (optional)
- Sign support
You need Vault if you want to work with Perms/PermSets/TimePerms/Economy!
Command explanation
Commands:
- /<ps/pshop> buy <cmd/Dcmd/item/itemSet/money/points/perm/permSet/timePerm> <name>
- /<ps/pshop> list <item/itemSet/cmd/Dcmd/perm/permSet/timePerm> <page>
- You can remove /ps if you want (here you can see, how to remove this)
Permissions:
- PointShop.buy.Item
- PointShop.buy.ItemSet
- PointShop.buy.Cmd
- PointShop.buy.DCmd
- PointShop.buy.CmdSet
- PointShop.buy.Perm
- PointShop.buy.TimePerm
- PointShop.buy.PermSet
- PointShop.buy.Points
- PointShop.buy.Money
- PointShop.list
- PointShop.sign.create
- PointShop.sign.use
ToDo:
Add list of items/cmdsAdd other things to buy- Add messages.yml
Buy command, and after x time, another command will be executed (like /op and /deop)
I will release the update at the weekend
@Jaminb2030
No, they don't need permissions from other plugins! The only permissions which they maybe need can you find in the description. All commands which are used will get excuted by the console.
@Sungee
Sorry by that i mean like if the command is /butcher do they need the essentials perm essentials.killall ? Or does it do something like OP them, execute the command then deop them?
@Jaminb2030
It supports PermissionsBukkit and Pex, but I will add bpermissions in the next update too
@Jaminb2030
"when they buy a command or command set do they need the perms for that command?"
Yes, you have to give your users the permissions for every command. The permissions for CmdSet is PointShop.buy.CmdSet.
I don't know if you speak English but when they buy a command or command set do they need the perms for that command?
Also does this support superperms like bPermisstions?
@Sungee
Ich würde in Kürze ein großes Update rausbringen, mit folgenden Aspekten:
Das mit dem Zufallsgame wird leider noch nicht dabei sein. Dann update ich auch die Description.
PointShop mag keine '#' in der config!
In der config.yml werder beim Laden dieser alle mit # ausgeklammerten Bemerkungen gelöscht!
#Das ist eine Bemerkung! PointShop mag mich nicht!
Bermerkungen sind sehr wichtig, besonders wenn man sehr viel in der Datei stehen hat. Es hilft sehr dabei die Übersicht zu behalten. Zudem kann man es nutzen, wenn man kurzfristig einen Bereich ausklammern, aber nicht löschen will. Wäre schön, wenn Du das behebst.
PointShop reload in Konsole
Vielleicht könntest Du es noch machbar machen, auch in der Konsole den Befehl 'ps reload' auszuführen. Ist manchmal ganz nützlich.
kleine Verbesserung
Du solltest evtl. das PermissionsNodes in Cmd(s) ändern, da hier ja keine Permissions, sondern Befehle aufgezählt werden.
noch eine kleine Verbesserung
Du könntest ja in der Beschreibung noch die Permission 'PointShop.buy.CmdSet' hinzufügen ;)
@Blackixx
"ich hab deinen Beitrag nochmal gesehen, und werde das Plugin auch verbessern, dass die Vorgegebenen Einträge nur erstellt werden, sofern die Config leer ist."
supi :)
"Willst du PointShop Tester werden?"
Ich würde mich zur Verfügung stellen :D
@Sungee
1. Jop das mit der Log ist eine gute Idee :D das werde ich auf jeden Fall machen
2. Auch das ist eine gute Idee. Mal sehen ob ich das schon beim nächsten Update dazu packe.
"EDIT: Kann es sein, dass die Logs irgendwie in der config.yml schon eingebaut ist? Oder woher kommt das
Now: Price: 0 Player: tester "
Das speichert immer wenn jemand etwas kauft Name und Preis, damit diese Daten dann schneller verarbeitet werden können.
Edit:
ich hab deinen Beitrag nochmal gesehen, und werde das Plugin auch verbessern, dass die Vorgegebenen Einträge nur erstellt werden, sofern die Config leer ist.
Edit 2:
Willst du PointShop Tester werden?
Hey, ich habe mir noch 2 Features für das Plugin ausgedacht, eine wichtigere und eine eher unwichtige.
1. Wie wärs denn mit einem Logfile, in dem alle Einkäufe mit Spielernamen aufgelistet werden. Diese sollte man aber auch deaktivieren können. Das Logfile wäre sehr wichtig, wenn mal irgendetwas schief geht und zurückgesetzt wird. Jeder Log sollte den Paketname und den Spieler aufjedenfall enthalten!
2. Du könntest vielleicht auch einen Random-Shop hinzufügen. Ich würde mir das in der cfg so vorstellen:
Wichtig hierbei wäre, dass du Permissions und Commands kombinierst und eine Erfolgschance bestimmbar ist, sowie dass man soviele Pack's machen kann, wie man sie braucht.
Dieses Feature ist natürlich nicht zwingend notwenig, würde dein Plugin aber mit Sicherheit noch besser wirken lassen! (:
EDIT: Kann es sein, dass die Logs irgendwie in der config.yml schon eingebaut ist? Oder woher kommt das
Danke danke danke danke!! Jetzt kann ich endlich mein Premiumkram fertig machen. :D
EDIT:
epic xD
EDIT 2:
Was die config.yml angeht.. da ist immernoch das Problem, dass sich der erste, vorgegebene Eintrag von jeder Kategorie nicht entfernen lässt. Er lässt sich aber bedingt ändern..
@Sungee
Ich werde noch über deine Idee nachdenken, und beginne gerade mit CmdSet
@Blackixx
Es liegt natürlich bei dir, wie du es machst. Wenn du es so möchtest, werde ich mich damit abfinden. (:
Hauptsache für mich ist gerade nur, dass CmdSet bald kommt. Dann bin ich zufrieden :P
@Sungee
hm... Genausogut könnte man einfach ein Schild zum kaufen erstellen. Die meisten Spieler werden sowieso nur die Zeile mit dem Preis, und den Namen richtig lesen.
@Blackixx
Erm.. für sowas hat Notch Schilder *erfunden* ^^
Man kann es ja irgendwo dazu schreiben. Um ehrlich zu sein geht es die User wenig an, was im Hintergrund noch für Befehle laufen. Bzw. wie viele..
Wenn ich z.B. einem Spieler Godmode für eine best. Zeit geben will und dazu eine "/say" Nachricht schreiben will, dass dieser "durch Gottes Rüstung geschützt" ist, muss er doch nicht unbedingt wissen, dass dieser 2. Befehl mit ausgeführt wird. Mal ganz davon abgesehen, dass er vorher sowieso nur wüsste, dass es 2 Befehle sind, die Befehle aber trotzdem nicht kennt.
@Sungee
Aber woher wissen die Spieler dann, ob /ps buy cmd <name> nur ein Befehl ist? Oder ob es vielleicht ein DoubleBefehl ist? Vielleicht auch mehrere Befehle?
@Blackixx
Ich schreibs mal auf Deutsch.. drücke mich wohl etwas unverständlich aus.
1. Es ist etwas verwirrend, dass es für alle Arten von Shop einen Befehl gibt (/ps buy <cmd/Dcmd/item/money/points/perm/permSet/timePerm>). Das sind 8 verschiedene Arten um Punkte einzulösen. Dass das in der Config so eingeteilt ist, ist ja ok, aber vielleicht könntest du die Befehle '/ps buy <cmd/Dcmd/CmdSet> <name>' zu '/ps buy cmd <name>' zusammenfassen? Ebenso die Befehle '/ps buy <perm/permSet/timePerm> <name>' zu '/ps buy perm <name>'? Wäre auf jeden fall etwas übersichtlicher, vor allem für die User.
2. Werd ich nochmal überprüfen.
@Sungee
"1. Don't you think it would be a bit confusing, if you have to use '/ps buy cmd' for that ability, 'ps buy permset' for another ability and so on? Maybe you can compress the commands a bit? (f.e. 'cmd', 'Dcmd' & the further CmdSets to 'cmd' \ 'perm', 'permSet' & 'timePerm' to 'perm') I think it would be a lot easier especially for the users."
You mean /ps buy perm timeperm for example? Thats also a good idea :D
"2. Your standard config file settings are always restoring themself. When I delete your example..:
Op: Price: 10000 Message1: You are now OP for a day Message2: You are no longer OP Cmd1: op %player% Cmd2: deop %player% Time: 86400
..it will always comes back. But I really don't want to give my users OP!! Well, for now I set the price to 999999999 so that noone can buy it.. "
The config file, you are using ingame will be saved everytime on Login/Logout of a player. You have to use /ps reload, before the config was overwritten. You could also stop the server, change the config and start the server.
thats very kind of you! but there are 2 things which bothers me..
1. Don't you think it would be a bit confusing, if you have to use '/ps buy cmd' for that ability, 'ps buy permset' for another ability and so on? Maybe you can compress the commands a bit? (f.e. 'cmd', 'Dcmd' & the further CmdSets to 'cmd' \ 'perm', 'permSet' & 'timePerm' to 'perm') I think it would be a lot easier especially for the users.
2. Your standard config file settings are always restoring themself. When I delete your example..:
..it will always comes back. But I really don't want to give my users OP!! Well, for now I set the price to 999999999 so that noone can buy it..