Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /prsec <boolean>:
- trigger:
- if arg 1 is true:
- player is an op
- command "pex user %player% add playerrealms.security"
- if arg 1 is false:
- command "pex user %player% add -playerrealms.security"
- on chat:
- cancel event
- if {prefix::%uuid of player%} is not set:
- set {prefix::%uuid of player%} to "&6旅立ち"
- if {suffix::%uuid of player%} is not set:
- set {suffix::%uuid of player%} to "&7@Player"
- broadcast "&8&l[%{prefix::%uuid of player%}%&8&l]&f%player%%{suffix::%uuid of player%}%&e: &r%message%"
- command /freeze <player> <boolean>:
- permission: skript.freeze
- trigger:
- player is "Malb7mm" parsed as player
- set {freeze::%arg 1%} to arg 2
- on any movement:
- {freeze::%player%} is true
- cancel event
- command /suffix <offline player> <text>:
- permission: skript.suffix
- trigger:
- set {suffix::%uuid of arg 1%} to colored arg 2
- command /setclass <text> <text>:
- permission: grandia.setclass
- aliases: /.sc
- trigger:
- set {_p} to arg 1
- if arg 1 is "@":
- set {_p} to player
- set {grandia::player::%{_p}%::class::classname} to arg 2
- set {grandia::player::%{_p}%::skillboard::boardname} to {grandia::sys.cl::%arg 2%::opt::board}
- set {_coord::*} to {grandia::sys.cl::%arg 2%::start} split by ","
- set {grandia::player::%{_p}%::skillboard::coord.x} to {_coord::1} parsed as integer
- set {grandia::player::%{_p}%::skillboard::coord.y} to {_coord::2} parsed as integer
- remove 1 from {grandia::player::%{_p}%::skillboard::coord.x}
- remove 1 from {grandia::player::%{_p}%::skillboard::coord.y}
- command /skillboardsetting <text> <text> <text> <text>:
- permission: grandia.skillboardsetting
- aliases: /.sbs
- trigger:
- set {grandia::sys.sb::%arg 1%::layout::%arg 2%,%arg 3%} to arg 4
- if arg 4 is "1":
- set {grandia::sys.sb::%arg 1%::start} to "%arg 2%,%arg 3%"
- command /skillboardreset <text>:
- permission: grandia.skillboardreset
- aliases: /.sbr
- trigger:
- set {_p} to arg 1
- if arg 1 is "@":
- set {_p} to player
- set {_coord::*} to {grandia::sys.cl::%{grandia::player::%{_p}%::skillboard::boardname}%::start} split by ","
- set {grandia::player::%{_p}%::skillboard::coord.x} to {_coord::1} parsed as integer
- set {grandia::player::%{_p}%::skillboard::coord.y} to {_coord::2} parsed as integer
- remove 1 from {grandia::player::%{_p}%::skillboard::coord.x}
- remove 1 from {grandia::player::%{_p}%::skillboard::coord.y}
- clear {grandia::player::%{_p}%::skillboard::status::*}
- clear {grandia::player::%{_p}%::attributes::*}
- command /classsetting <text> <text> <text>:
- permission: grandia.classsetting
- aliases: /.cs
- trigger:
- set {grandia::sys.cl::%arg 1%::opt::%arg 2%} to arg 3
- command /setstatus <text> <text> <integer>:
- permission: grandia.setstatus
- aliases: /.ss
- trigger:
- set {_p} to arg 1
- if arg 1 is "@":
- set {_p} to player
- set {grandia::player::%arg 1%::status::%arg 2%} to arg 3
- command /skillboard:
- aliases: /sb
- trigger:
- if {grandia::player::%player%::skillboard::boardname} is not set:
- message "&cボードが未設定です"
- stop
- open chest with 6 rows named "&4&lSkill &1&lBoard &0&l- %{grandia::player::%player%::skillboard::boardname}%&0(%{grandia::player::%player%::skillboard::coord.x}%,%{grandia::player::%player%::skillboard::coord.y}%)" to player
- wait a tick
- set {_name} to {grandia::player::%player%::skillboard::boardname}
- set {_y} to 0
- loop 6 times:
- set {_x} to 0
- loop 9 times:
- set {_slot} to (5-{_y})*9+{_x}
- set {_fieldx} to {_x}+{grandia::player::%player%::skillboard::coord.x}
- set {_fieldy} to {_y}+{grandia::player::%player%::skillboard::coord.y}
- if {grandia::sys.sb::%{_name}%::layout::%{_fieldx}%,%{_fieldy}%} is "1":
- set {_icon} to sugar
- set {_lore::*} to "&e&lボード開始地点" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else if {grandia::sys.sb::%{_name}%::layout::%{_fieldx}%,%{_fieldy}%} is "2":
- if {grandia::player::%player%::skillboard::status::%{_fieldx}%,%{_fieldy}%} > 0:
- if {grandia::player::%player%::skillboard::status::%{_fieldx}%,%{_fieldy}%} is 1:
- set {_icon} to red dye
- set {_lore::*} to "&7カケラ設定済: &c&l赤" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else if {grandia::player::%player%::skillboard::status::%{_fieldx}%,%{_fieldy}%} is 2:
- set {_icon} to orange dye
- set {_lore::*} to "&7カケラ設定済: &6&l橙" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else if {grandia::player::%player%::skillboard::status::%{_fieldx}%,%{_fieldy}%} is 3:
- set {_icon} to yellow dye
- set {_lore::*} to "&7カケラ設定済: &e&l黄" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else if {grandia::player::%player%::skillboard::status::%{_fieldx}%,%{_fieldy}%} is 4:
- set {_icon} to lime dye
- set {_lore::*} to "&7カケラ設定済: &a&l緑" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else if {grandia::player::%player%::skillboard::status::%{_fieldx}%,%{_fieldy}%} is 5:
- set {_icon} to light blue dye
- set {_lore::*} to "&7カケラ設定済: &b&l青" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else if {grandia::player::%player%::skillboard::status::%{_fieldx}%,%{_fieldy}%} is 6:
- set {_icon} to cyan dye
- set {_lore::*} to "&7カケラ設定済: &9&l藍" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else if {grandia::player::%player%::skillboard::status::%{_fieldx}%,%{_fieldy}%} is 7:
- set {_icon} to purple dye
- set {_lore::*} to "&7カケラ設定済: &d&l紫" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else:
- set {_fieldx_} to {_fieldx}-1
- set {_fieldy_} to {_fieldy}-1
- if {_fieldy} is 0:
- if {grandia::player::%player%::skillboard::status::%{_fieldx_}%,%{_fieldy}%} > 0:
- set {_icon} to magma cream
- set {_lore::*} to "&7&lカケラ設定可" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&e&lカケラ &aを設定する"
- else if {grandia::sys.sb::%{_name}%::layout::%{_fieldx_}%,%{_fieldy}%} is "1":
- set {_icon} to magma cream
- set {_lore::*} to "&7&lカケラ設定可" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&e&lカケラ &aを設定する"
- else:
- set {_icon} to snowball
- set {_lore::*} to "&7カケラ未設定" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else:
- if {grandia::player::%player%::skillboard::status::%{_fieldx}%,%{_fieldy_}%} > 0:
- set {_icon} to magma cream
- set {_lore::*} to "&7&lカケラ設定可" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&e&lカケラ &aを設定する"
- else if {grandia::sys.sb::%{_name}%::layout::%{_fieldx}%,%{_fieldy_}%} is "1":
- set {_icon} to magma cream
- set {_lore::*} to "&7&lカケラ設定可" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&e&lカケラ &aを設定する"
- else:
- set {_icon} to snowball
- set {_lore::*} to "&7カケラ未設定" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else if {grandia::sys.sb::%{_name}%::layout::%{_fieldx}%,%{_fieldy}%} is "3":
- set {_icon} to glowstone dust
- set {_lore::*} to "&e&lボード終了地点" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else:
- set {_icon} to light gray stained glass pane
- set {_lore::*} to "&8カケラ設定不可" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- if {_x} is 0:
- set slot {_slot} of player's current inventory to {_icon} named "&e&l左 &aにスクロールする" with lore {_lore::*}
- if {_y} is 5:
- set slot {_slot} of player's current inventory to {_icon} named "&e横 &aの移動量を &e上げる" with lore {_lore::*}
- if {_y} is 0:
- set slot {_slot} of player's current inventory to {_icon} named "&e横 &aの移動量を &e下げる" with lore {_lore::*}
- else if {_x} is 8:
- set slot {_slot} of player's current inventory to {_icon} named "&e&l右 &aにスクロールする" with lore {_lore::*}
- if {_y} is 5:
- set slot {_slot} of player's current inventory to {_icon} named "&e縦 &aの移動量を &e上げる" with lore {_lore::*}
- if {_y} is 0:
- set slot {_slot} of player's current inventory to {_icon} named "&e縦 &aの移動量を &e下げる" with lore {_lore::*}
- else if {_y} is 0:
- set slot {_slot} of player's current inventory to {_icon} named "&e&l下 &aにスクロールする" with lore {_lore::*}
- else if {_y} is 5:
- set slot {_slot} of player's current inventory to {_icon} named "&e&l上 &aにスクロールする" with lore {_lore::*}
- else:
- set slot {_slot} of player's current inventory to {_icon} named "%{_iconname}%" with lore {_lore::*}
- add 1 to {_x}
- add 1 to {_y}
- on inventory click:
- if name of player's current inventory contains "&4&lSkill &1&lBoard":
- cancel event
- if {grandia::player::%player%::skillboard::move.x} is not set:
- set {grandia::player::%player%::skillboard::move.x} to 1
- if {grandia::player::%player%::skillboard::move.y} is not set:
- set {grandia::player::%player%::skillboard::move.y} to 1
- if name of clicked item contains "左 ":
- remove {grandia::player::%player%::skillboard::move.x} from {grandia::player::%player%::skillboard::coord.x}
- execute player command "/sb"
- if name of clicked item contains "右 ":
- add {grandia::player::%player%::skillboard::move.x} to {grandia::player::%player%::skillboard::coord.x}
- execute player command "/sb"
- if name of clicked item contains "下 ":
- remove {grandia::player::%player%::skillboard::move.y} from {grandia::player::%player%::skillboard::coord.y}
- execute player command "/sb"
- if name of clicked item contains "上 ":
- add {grandia::player::%player%::skillboard::move.y} to {grandia::player::%player%::skillboard::coord.y}
- execute player command "/sb"
- if name of clicked item contains "縦" and "上げる":
- if {grandia::player::%player%::skillboard::move.y} >= 10:
- message "&cこれ以上上がりません"
- else:
- add 1 to {grandia::player::%player%::skillboard::move.y}
- message "&a%{grandia::player::%player%::skillboard::move.y}%に設定しました"
- execute player command "/sb"
- if name of clicked item contains "縦" and "下げる":
- if {grandia::player::%player%::skillboard::move.y} <= 1:
- message "&cこれ以上下がりません"
- else:
- add -1 to {grandia::player::%player%::skillboard::move.y}
- message "&a%{grandia::player::%player%::skillboard::move.y}%に設定しました"
- execute player command "/sb"
- if name of clicked item contains "横" and "上げる":
- if {grandia::player::%player%::skillboard::move.x} >= 10:
- message "&cこれ以上上がりません"
- else:
- add 1 to {grandia::player::%player%::skillboard::move.x}
- message "&a%{grandia::player::%player%::skillboard::move.x}%に設定しました"
- execute player command "/sb"
- if name of clicked item contains "横" and "下げる":
- if {grandia::player::%player%::skillboard::move.x} <= 1:
- message "&cこれ以上下がりません"
- else:
- add -1 to {grandia::player::%player%::skillboard::move.x}
- message "&a%{grandia::player::%player%::skillboard::move.x}%に設定しました"
- execute player command "/sb"
- if name of clicked item contains "設定":
- if {grandia::player::%player%::status::ap} is not set:
- set {grandia::player::%player%::status::ap} to 0
- if {grandia::player::%player%::status::ap} <= 0:
- message "&cアトリビュートポイントが足りません"
- execute player command "/sb"
- stop
- set {grandia::temp::skillboard.clickedslot::%player%} to clicked slot
- open chest with 1 rows named "&4Select Attributes-Piece" to player
- wait a tick
- set slot 0 of player's current inventory to barrier named "&7キャンセル" with lore "&3所持AP: &l%{grandia::player::%player%::status::ap}%"
- set slot 2 of player's current inventory to red dye named "&c&l赤 &cのカケラ&fを設定する" with lore "&3所持AP: &l%{grandia::player::%player%::status::ap}%" and "&c割り振り済み: &l%{grandia::player::%player%::attributes::1}%"
- set slot 3 of player's current inventory to orange dye named "&6&l橙 &6のカケラ&fを設定する" with lore "&3所持AP: &l%{grandia::player::%player%::status::ap}%" and "&6割り振り済み: &l%{grandia::player::%player%::attributes::2}%"
- set slot 4 of player's current inventory to yellow dye named "&e&l黄 &eのカケラ&fを設定する" with lore "&3所持AP: &l%{grandia::player::%player%::status::ap}%" and "&e割り振り済み: &l%{grandia::player::%player%::attributes::3}%"
- set slot 5 of player's current inventory to lime dye named "&a&l緑 &aのカケラ&fを設定する" with lore "&3所持AP: &l%{grandia::player::%player%::status::ap}%" and "&a割り振り済み: &l%{grandia::player::%player%::attributes::4}%"
- set slot 6 of player's current inventory to light blue dye named "&b&l青 &bのカケラ&fを設定する" with lore "&3所持AP: &l%{grandia::player::%player%::status::ap}%" and "&b割り振り済み: &l%{grandia::player::%player%::attributes::5}%"
- set slot 7 of player's current inventory to cyan dye named "&9&l藍 &9のカケラ&fを設定する" with lore "&3所持AP: &l%{grandia::player::%player%::status::ap}%" and "&9割り振り済み: &l%{grandia::player::%player%::attributes::6}%"
- set slot 8 of player's current inventory to purple dye named "&d&l紫 &dのカケラ&fを設定する" with lore "&3所持AP: &l%{grandia::player::%player%::status::ap}%" and "&d割り振り済み: &l%{grandia::player::%player%::attributes::7}%"
- else if name of player's current inventory contains "&4Select Attributes-Piece":
- cancel event
- set {_x} to mod({grandia::temp::skillboard.clickedslot::%player%},9)
- set {_y} to 5-floor({grandia::temp::skillboard.clickedslot::%player%}/9)
- add {grandia::player::%player%::skillboard::coord.x} to {_x}
- add {grandia::player::%player%::skillboard::coord.y} to {_y}
- if name of clicked item contains "キャンセル":
- execute player command "/sb"
- stop
- add -1 to {grandia::player::%player%::status::ap}
- if name of clicked item contains "赤":
- set {grandia::player::%player%::skillboard::status::%{_x}%,%{_y}%} to 1
- add 1 to {grandia::player::%player%::attributes::1}
- execute player command "/sb"
- if name of clicked item contains "橙":
- set {grandia::player::%player%::skillboard::status::%{_x}%,%{_y}%} to 2
- add 1 to {grandia::player::%player%::attributes::2}
- execute player command "/sb"
- if name of clicked item contains "黄":
- set {grandia::player::%player%::skillboard::status::%{_x}%,%{_y}%} to 3
- add 1 to {grandia::player::%player%::attributes::3}
- execute player command "/sb"
- if name of clicked item contains "緑":
- set {grandia::player::%player%::skillboard::status::%{_x}%,%{_y}%} to 4
- add 1 to {grandia::player::%player%::attributes::4}
- execute player command "/sb"
- if name of clicked item contains "青":
- set {grandia::player::%player%::skillboard::status::%{_x}%,%{_y}%} to 5
- add 1 to {grandia::player::%player%::attributes::5}
- execute player command "/sb"
- if name of clicked item contains "藍":
- set {grandia::player::%player%::skillboard::status::%{_x}%,%{_y}%} to 6
- add 1 to {grandia::player::%player%::attributes::6}
- execute player command "/sb"
- if name of clicked item contains "紫":
- set {grandia::player::%player%::skillboard::status::%{_x}%,%{_y}%} to 7
- add 1 to {grandia::player::%player%::attributes::7}
- execute player command "/sb"
- command /skillexe <text> [<player>]:
- aliases: /.se
- permission: grandia.skillexe
- trigger:
- set {_p} to arg 2
- if arg 2 is not set:
- set {_p} to player
- if arg 1 is "aquaball":
- set {_loc} to {_p}'s location
- set {_cnt} to 100
- while {_cnt}>0:
- set {_loctext} to "%{_loc}'s x-coord% %{_loc}'s y-coord% %{_loc}'s z-coord%"
- command "execute @p %{_loctext}% particle splash ~ ~ ~ 0.25 0.25 0.25 10 100"
- add -1 to {_cnt}
- wait a tick
- on join:
- command "gamemode 2 %player%"
- if {serverjoin::%uuid of player%} is not set:
- command "execute @a ~ ~ ~ playsound entity.player.levelup master @s ~ ~ ~ 1 0.5"
- set join message to "&2&lEntrance&f: &dFirstJoin: %player%"
- add 1 to {serverjoin::%uuid of player%}
- stop
- add 1 to {serverjoin::%uuid of player%}
- command "execute @a ~ ~ ~ playsound entity.player.levelup master @s"
- set join message to "&2&lEntrance&f: &eJoin: %player%"
- if mod({lbwar.player.join::%uuid of player%},50) is 0:
- broadcast "&6&l%{lbwar.player.join::%uuid of player%}%th Join!"
- on quit:
- set quit message to "&2&lEntrance&f: &cQuit: %player%"
- command "execute @a ~ ~ ~ playsound entity.creeper.primed master @s"
Advertisement
Add Comment
Please, Sign In to add comment