Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- {mb::messages::%{_p}%::%{_c}%::%{messages::%{_p}%::%{_c}%}%} = {mb::messages::%{_p}%::%{_sendTo}%::%{messages::%{_p}%::%{_c}%}%}
- {mb::messages::%{_c}%::%{_p}%::%{messages::%{_p}%::%{_c}%}%} = {mb::messages::%{_p}%::%{_sendTo}%::%{messages::%{_p}%::%{_c}%}%}
- {mb::messages::sender::%{_p}%::%{_c}%} = {mb::messages::sender::%{_c}%::%{_p}%}
- {messages::%{_p}%::%{_c}%} = {messages::%{_p}%::%{_sendTo}%}
- {messages::%{_c}%::%{_p}%} = {messages::%{_sendTo}%::%{_p}%}
- 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}%::%{c}%} to {_s}
- set {mb::messages::%{_c}%::%{_s}%::%{c}%} to {_s}
- set {mb::messages::sender::%{_p}%::%{_c}%} to {_p}
- set {mb::messages::sender::%{_c}%::%{_p}%} to {_p}
- add 1 to {messages::%{_p}%::%{_c}%}
- add 1 to {messages::%{_c}%::%{_p}%}
- 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}
- add 1 to {_count}
- make gui slot {_count} of {_p} with a paper to close
- #send "%{messages::%{_p}%::%{_sendTo}%}%" to {_p}
- #set {_count} to 8
- #loop {messages::%{_p}%::%{_c}%} times:
- # add 1 to {_count}
- #createWAMessage({_p}, {_sendTo}, {_count})
- #make gui slot {messages::%{_p}%::%{_c}%} of {_p} with a paper named "%{mb::messages::%{_p}%::%{_sendTo}%::%{_c}%}%" with lore "&7Sender: %{mb::messages::sender::%{_p}%::%{_c}%}%" to close
- #send "%{mb::messages::%{_p}%::%{_sendTo}%::%{c}%}%" to {_p}
- #send "%{mb::messages::%{_sendTo}%::%{_p}%::%{c}%}%" to {_p}
- #if {mb::messages::%{_p}%::%{_sendTo}%::%{c}%} is set:
- # make gui slot {_slot} of {_p} with a paper named "&f%{mb::messages::%{_p}%::%{_sendTo}%::%{_c}%}%" with lore "&7Sender: %{_p}%" to close
- # add 1 to {_slot}
- #if {mb::messages::%{_sendTo}%::%{_p}%::%{c}%} is set:
- # make gui slot {_slot} of {_p} with a paper named "%{mb::messages::%{_sendTo}%::%{_p}%::%{_c}%}%" with lore "&7Sender: %{_sendTo}%" to close
- # add 1 to {_slot}
- function createWAMessage(p: Player, s: String, slot: String):
- send "d" to {_p}
- send "%{_slot}%" to {_p}
- make gui slot {_slot} of {_p} with a paper to close
- #function bank(p: Player, s: String):
- #Accounts (persoonlijk - gold block)
- #Geld (waardes; iron = 10, gold = 50 & diamond = 100)
- 15
Advertisement
Add Comment
Please, Sign In to add comment