Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- {mb::messages::%{_p}%::%{_c}%::1} = {mb::messages::%{_p}%::%{_sendTo}%::1}
- {mb::messages::%{_c}%::%{_p}%::1} = {mb::messages::%{_p}%::%{_sendTo}%::1}
- on enable:
- set {mb::prefix} to "&3[&dMobile&3] &f>> &8"
- on join:
- if {mb::whatsapp::%player%::contacten::*} is not set:
- add player to {mb::whatsapp::%player%::contacten::*}
- command /mobile [<text>] [<text>] [<text>] [<text>]:
- aliases: /mb
- trigger:
- if arg 1 is "get":
- give player a book named "&8Mobile" with lore "&7Mobieltje"
- stop
- if arg 1 is "whatsapp" OR "app":
- if arg 2 is "read":
- whatsapp(player, "Main")
- stop
- if arg 2 is "send":
- if arg 3 is set:
- if {mb::whatsapp::%player%::contacten::*} contains "%arg 3%":
- if arg 4 is set:
- sendWA(player, "%arg 3%", "%arg 4%")
- stop
- else:
- send "%{mb::prefix}% &4Je moet nog een &cbericht &4opgeven."
- stop
- else:
- send "%{mb::prefix}% &4De persoon &c%arg 3% &4staat niet tussen je contacten."
- stop
- else:
- send "%{mb::prefix}% &4Je moet nog een &ccontact &4en &cbericht &4opgeven."
- stop
- on rightclick:
- player is holding a book named "&8Mobile" with lore "&7Mobieltje":
- open chest with 1 rows named "&8Mobile" to player
- make gui slot 0 of player with a green dye named "&2Whatsapp" to run function whatsapp(player, "Main")
- make gui slot 1 of player with a gold block named "&6Bank" to run function bank(player, "menu")
- function sendWA(p: Player, c: String, s: String):
- set {mb::messages::%{_p}%::%{_c}%::1} to {_s}
- set {mb::messages::%{_c}%::%{_s}%::1} to {_s}
- function whatsapp(p: Player, s: String):
- #Jezelf in contacten
- if {_s} is "Main":
- open chest with 1 rows named "&2Contacten - Whatsapp" to {_p}
- make gui slot 0 of {_p} with a book named "&6%{_p}%" to close then run function whatsapp({_p}, "Read.%{_p}%")
- stop
- if {_s} contains "Read.":
- replace all "Read." in {_s} with ""
- set {_sendTo} to {_s}
- open chest with 6 rows named "&2%{_sendTo}% - Whatsapp" to {_p}
- if {mb::messages::%{_p}%::%{_sendTo}%::1} is set:
- make gui slot {_slot} of {_p} with a paper named "&f%{mb::messages::%{_p}%::%{_sendTo}%::1}%" with lore "&7Sender: %{_p}%" to close
- add 1 to {_slot}
- if {mb::messages::%{_sendTo}%::%{_p}%::1} is set:
- make gui slot {_slot} of {_p} with a paper named "%{mb::messages::%{_sendTo}%::%{_p}%::1}%" with lore "&7Sender: %{_sendTo}%" to close
- add 1 to {_slot}
- #function bank(p: Player, s: String):
- #Accounts (persoonlijk - gold block)
- #Geld (waardes; iron = 10, gold = 50 & diamond = 100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement