SHARE
TWEET

Untitled

a guest Feb 18th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Options
  2. options:
  3.     com: &6&l≪ Company ≫
  4.     sys: &2&l≪ System ≫
  5.     err: &4&l< Error >
  6.  
  7.  
  8. # Command ( Info )
  9. command /company [<offlineplayer>]:
  10.     trigger:
  11.         if arg-1 is set:
  12.             send "&6&l≪<&e&l--&6&l<&e&l-&6&l< &6&lCompany Info &6&l>&e&l-&6&l>&e&l--&6&l>≫"
  13.             send " "
  14.             send "     &7&l< &2&l%{com.name.%arg%}% &7&l>"
  15.             send " "
  16.             send "    &6&l社長 &7&l: &e&l%{com.leader.%arg%}%"
  17.             send "    &6&l社員数 &7&l: &e&l%{com.member.%arg%}%"
  18.             send "    &6&l資金 &7&l: &e&l%{com.money.%arg%}%"
  19.             send " "
  20.             send "&6&l≪<&e&l----&6&l<&e&l-&6&l< &6&l------- &6&l>&e&l-&6&l>&e&l----&6&l>≫"
  21.             stop
  22.         if arg-1 is not set:
  23.             send "{@err} &c情報を表示させたいプレイヤー名を入力してください"
  24.             stop
  25.  
  26.  
  27. # Command ( Create )
  28. command /c.create <offlineplayer>:
  29.     permission: c.admin
  30.     permission message: {@err} &cこの動作は行えません
  31.     trigger:
  32.         if {com.have.%arg%} is not true:
  33.             set {com.name.time.%arg%} to true
  34.             send "{@com} &e設立したい会社名を入力して下さい"
  35.             send "     &7( - と打つとキャンセルされます )"
  36.             send "           &6・/jp off にして下さい"
  37.             send "           &6・10文字以内にして下さい"
  38.         if {com.have.%arg%} is true:
  39.             send "{@err} &c既に会社を設立しています"
  40.             stop
  41.  
  42.  
  43. # Command ( Remove )
  44. command /c.remove <offlineplayer>:
  45.     permission: c.admin
  46.     permission message: {@err} &cこの動作は行えません
  47.     trigger:
  48.         if {com.have.%arg%} is true:
  49.             set {com.name.%arg%} to "none"
  50.             set {com.have.%arg%} to false
  51.             set {com.leader.%arg%} to "none"
  52.             set {com.money.%arg%} to 0
  53.             set {com.member.%arg%} to 0
  54.             send "{@com} &e会社を取り壊しました"
  55.             stop
  56.         if {com.have.%arg%} is false:
  57.             send "{@err} &c会社を設立していません"
  58.             stop
  59.  
  60.  
  61. # Command ( Rename )
  62. command /c.rename <offlineplayer>:
  63.     permission: c.admin
  64.     permission message: {@err} &cこの動作は行えません
  65.     trigger:
  66.         if {com.have.%arg%} is true:
  67.             set {com.rename.time.%arg%} to true
  68.             send "{@com} &e変更したい会社名を入力して下さい"
  69.             send "     &7( - と打つとキャンセルされます )"
  70.             send "           &6・/jp off にして下さい"
  71.             send "           &6・10文字以内にして下さい"
  72.             stop
  73.         if {com.have.%arg%} is not true:
  74.             send "{@err} &c会社を設立していません"
  75.             stop
  76.  
  77.  
  78. # Chat
  79. on chat:
  80.     if {com.name.time.%player%} is true:
  81.         if length of message is less than 11:
  82.             if message contains "-":
  83.                 cancel event
  84.                 set {com.name.time.%player%} to false
  85.                 send "{@com} &eキャンセルしました"
  86.                 stop
  87.             else:
  88.                 cancel event
  89.                 set {com.have.%player%} to true
  90.                 set {com.name.%player%} to message
  91.                 set {com.leader.%player%} to player
  92.                 set {com.money.%player%} to 0
  93.                 set {com.member.%player%} to 0
  94.                 send "{@com} &6%message%&eを立ち上げました"
  95.                 set {com.name.time.%player%} to false
  96.                 stop
  97.         if length of message is more than 10:
  98.             cancel event
  99.             send "{@err} &c会社名は10文字以内に収めて下さい"
  100.             set {com.name.time.%player%} to false
  101.             stop
  102.     if {com.rename.time.%player%} is true:
  103.         if length of message is less than 11:
  104.             if message contains "-":
  105.                 cancel event
  106.                 set {com.rename.time.%player%} to false
  107.                 send "{@com} &eキャンセルしました"
  108.                 stop
  109.             else:
  110.                 cancel event
  111.                 set {com.name.%player%} to message
  112.                 set {com.rename.time.%player%} to false
  113.                 send "{@com} &e会社名を&6%message%&eに変更しました"
  114.                 stop
  115.         if length of message is more than 10:
  116.             cancel event
  117.             send "{@err} &c会社名は10文字以内に収めて下さい"
  118.             set {com.rename.time.%player%} to false
  119.             stop
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top