Hello, I am really new to skript. I made a money voucher to grant a random amount of money, that I set, but I feel like the way that I did it, isn't safe, or may bug out.
As of now, it works flawlessly, but again, feels unsafe. Could I get some help making this more safe? i doubt if this will be okay to use on a live server?
Edit 1: I only made it "if player's tool's display name is "&a&lᴍᴏɴᴇʏ ᴘᴏᴜᴄʜ &8(&7Tier-1&8)":" because no one on the server will be able to rename items with color, so ultimately, only those who have the item can only right-click it for the skript to run. They cannot produce an item with the same colors and format.
As of now, it works flawlessly, but again, feels unsafe. Could I get some help making this more safe? i doubt if this will be okay to use on a live server?
Edit 1: I only made it "if player's tool's display name is "&a&lᴍᴏɴᴇʏ ᴘᴏᴜᴄʜ &8(&7Tier-1&8)":" because no one on the server will be able to rename items with color, so ultimately, only those who have the item can only right-click it for the skript to run. They cannot produce an item with the same colors and format.
Code:
on rightclick:
if player's tool is a paper:
if player's tool's display name is "&a&lᴍᴏɴᴇʏ ᴘᴏᴜᴄʜ &8(&7Tier-1&8)":
cancel the event
remove 1 of player's tool from player's inventory
set {_amount} to a random integer between 500 and 10000
execute console command "eco give %player% %{_amount}%"
Last edited: