Facebook
From Idiotic Partdridge, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 187
  1. command /contract [<text>] [<player>]:
  2.         trigger:
  3.                 if arg-1 is "help":
  4.                         send "&7/contract give <player>"
  5.                         send "&7/contract accept <player>"
  6.                         send "&7/contract deny <player>"
  7.                 if arg-1 is "give":
  8.                         send "&7You have sent a house contract to &a%arg-2%&7!"
  9.                         send "&7You have recieved a house contract from &a%player%&7!" to arg-2
  10.                         send "&7If you would wish to accept this type /contract accept <player>" to arg-2
  11.                 if arg-1 is "accept":
  12.                         send "&7You have &aaccepted &7this &acontract&7!"
  13.                         send "&a%player% &7has accepted &ayour &7contract!" to arg-2
  14.                        
  15. command /pay [<player>] <text>]:
  16.         trigger:
  17.                 loop all players:
  18.                         if arg-1 is not set:
  19.                                 if arg-2 is not set:
  20.                                         send "&cIncorrect usage"
  21.                                         wait 2 seconds
  22.                                         send ""
  23.                                         send "&7The correct usage is &c/pay <player> <amount>"
  24.                         if arg-1 is set:
  25.                                 if arg-2 is set:
  26.                                         if arg-2 is less than {tokens.%loop-player%}"
  27.                                                 send "&7You don't have enough &ctokens&7! &8(%{tokens.%loop-player%}%&8)"
  28.                                         if arg-2 is more than {tokens.%loop-player%}
  29.                                                 remove arg-2 from {tokens.%loop-player%}
  30.                                                 add arg-2 to {tokens.%arg-1%}
  31.                                                 send "&7You have paid &c%arg-1% %arg-2% &7tokens!"
  32.                                                 send "&c%player% &7has paid you &c%arg-2% &7tokens!" to arg-1
  33.                                                 stop
  34.                                                
  35. every second in "world":
  36.         loop all players:
  37.                 wipe loop-player's sidebar
  38.                 set name of sidebar of loop-player to "&eTokens: &8| &e%{tokens.%loop-player%}%"
  39.                 set score "&c&m---------------" in sidebar of loop-player to 14
  40.                 set score "&7" in sidebar of loop-player to 13
  41.                 set score "      &ePlayer: &8» &e%loop-player%" in sidebar of loop-player to 12
  42.                 set score "  &eKills: &8» &e%{kills.%loop-player%}%" in sidebar of loop-player to 11
  43.                 set score "  &eDeaths &8» &e%{deaths.%loop-player%}%" in sidebar of loop-player to 10
  44.                 set score "  &ePlaytime &8» &e%{playtime.%loop-player%}%" in sidebar of loop-player to 9
  45.                 set score "&f" in sidebar of loop-player to 8
  46.                 set score "&7&oyeetblue.minehut.gg" in sidebar of loop-player to 7
  47.                 set score "&c&m---------------" in sidebar of loop-player to 6