SHARE
TWEET

Untitled

K2Rk1o Dec 27th, 2018 (edited) 23 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /start:
  2.     permission: admin
  3.     trigger:
  4.         set {spawnpoint} to location of player
  5.         wait 1 tick
  6.         loop all players:
  7.             teleport loop-player to {spawnpoint}
  8.             set {jinro} to random player of loop-player
  9.             set {tantei} to random of loop-players
  10.         if {jinro} is {tantei}:
  11.             execute console command "stopgame"
  12.             broadcast "人狼と探偵が被ったためゲームを終了します。"
  13.         loop all players:
  14.             if loop-player is not {jinro}:
  15.                 add loop-player to {allplayer::*}
  16.             if loop-player is {jinro}:
  17.                 message "&cあなたは人狼です。"
  18.             if loop-player is {tantei}:
  19.                 message "&bあなたは探偵です。"
  20.         loop {allplayer::*}:
  21.             add 1 to {players}
  22.             add 1 to {member}
  23.         add 1 to {member}
  24.  
  25.  
  26. command /stopgame:
  27.     permission: admin
  28.     trigger:
  29.         delete {spawnpoint}
  30.         delete {jinro}
  31.         delete {tantei}
  32.         delete {}
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