BROKE PROTOCOL

BROKE PROTOCOL

Ikke nok vurderinger
PlaytimeProtocol
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Filstørrelse:
Offentliggjort:
18.944 KB
8. nov. 2022 kl. 11:55
1 ændringsbemærkning ( vis )

Abonner for at downloade
PlaytimeProtocol

Beskrivelse
How much time do you think you are spending playing in a server? Do you think playing in your favorite server is a waste of time? You wish you had an option to use your time for buying things or be rewarded?

Time is gold buddy, don't waste it. Let me introduce: PlaytimeProtocol - Save time, save gold!

This plugin adds a feature for recording your playtime, also adds a menu with the posibility getting a reward and a shop to use your playtime as payment. This plugin is semi-full customizable, you can customize this plugin in PlayTimeProtocol.json

Permissions: (You can customize this permissions)
- I recommend to use "ptp.*" because it doesn't have admin commands.
- ptp.playtime / ptp.timegame / ptp.playhours / ptp.hoursingame

Commands: (You can customize this commands)
- /playtime /timegame /playhours /hoursingame

Important properties in PlayTimeProtocol.json
- ShopHours
- HoursToReach

How this works:
- First of all, you have to play and that's all you are going to get the hours automatically.
- After that you can use /playtime to show the menu of your playtime.
- And finally you can buy things or claim the rewards in the menu.

You can use this plugin as a library with the following functions.
PlayTimeExternalUse:
- AddHoursToPlayer(ShPlayer, Int)
- RemoveHoursToPlayer(ShPlayer, Int)
- SetHoursToPlayer(ShPlayer, Int)
- GetHoursFromPlayer(ShPlayer)
Example for adding hours from your code:
- PlayTimeExternalUse.AddHoursToPlayer(player, 10) => This will add 10 hours to that specific player.

You still wasting your time without a reward? *slaps* PlaytimeProtocol - Save time, save gold!

If you have any issues contact me Đylan#4990 (303225873354719243)