Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {cub.set.%player%} = false
- {cub.tp.%player%} = false
- command /cuboid [<text>] [<text>]:
- permission: lckm.cub
- aliases: cub
- trigger:
- if arg 1 is "zaloz" or "stworz":
- if arg 2 is not set:
- if player has 128 emerald:
- set {pos%player%} to location of player
- set {pos1%player%} to {pos%player%}
- set {cub.set.%player%} to true
- set {cubdom.%player%} to location of player
- wait 1 second
- remove 128 emerald from player
- execute console command "pex user %name of player% add worldedit.*"
- execute console command "pex user %name of player% add worldguard.*"
- execute player command "//pos1"
- execute player command "//pos2"
- execute player command "//expand 10 n"
- execute player command "//expand 10 s"
- execute player command "//expand 10 w"
- execute player command "//expand 10 e"
- execute player command "//expand vert"
- execute player command "rg define %name of player%"
- execute player command "rg addowner %name of player% %name of player%"
- execute player command "rg flag %name of player% pvp deny"
- execute player command "rg flag %name of player% lava-fire deny"
- execute player command "rg flag %name of player% tnt deny"
- execute player command "rg flag %name of player% fire-spread deny"
- execute player command "rg flag %name of player% creeper-explosion deny"
- execute player command "rg flag %name of player% creeper-explosion deny"
- execute player command "rg flag %name of player% other-explosion deny"
- execute player command "rg flag %name of player% greeting &3&o>> &7Cuboid gracza &3%player%"
- execute player command "rg flag %name of player% farewell &3&o>> &7Teren publiczny!"
- execute console command "pex user %name of player% remove worldedit.*"
- execute console command "pex user %name of player% remove worldguard.*"
- loop 99 times:
- send ""
- wait 1 second
- send "&3&o>> &7Stworzyles teren &32 &7o wymiarach &320x20&7!" to player
- broadcast "&3&o>> &7Gracz &3%player% &7zalozyl teren &32&7!"
- command "run %player% /cub dodaj %player%"
- else:
- send "&3&o>> &7Nie masz &3128 szmaragdów&7!"
- stop
- if arg 1 is "extra":
- if arg 2 is not set:
- if player has 64 emerald block:
- set {pos%player%} to location of player
- set {pos1%player%} to {pos%player%}
- set {cub.set.%player%} to true
- set {cubdom.%player%} to location of player
- wait 1 second
- remove 64 emerald block from player
- execute console command "pex user %name of player% add worldedit.*"
- execute console command "pex user %name of player% add worldguard.*"
- execute player command "//pos1"
- execute player command "//pos2"
- execute player command "//expand 25 n"
- execute player command "//expand 25 s"
- execute player command "//expand 25 w"
- execute player command "//expand 25 e"
- execute player command "//expand vert"
- execute player command "rg define %name of player%"
- execute player command "rg addowner %name of player% %name of player%"
- execute player command "rg flag %name of player% pvp deny"
- execute player command "rg flag %name of player% lava-fire deny"
- execute player command "rg flag %name of player% tnt deny"
- execute player command "rg flag %name of player% creeper-explosion deny"
- execute player command "rg flag %name of player% other-explosion deny"
- execute player command "rg flag %name of player% greeting &3&o>> &7Cuboid extra gracza &3%player%"
- execute player command "rg flag %name of player% farewell &3&o>> &7Teren publiczny!"
- execute console command "pex user %name of player% remove worldedit.*"
- execute console command "pex user %name of player% remove worldguard.*"
- loop 99 times:
- send ""
- wait 1 second
- send "&3&o>> &7Stworzyles teren &32 &7o wymiarach &350x50&7!" to player
- broadcast "&3&o>> &7Gracz &3%player% &7zalozyl teren &350x50&7!"
- command "run %player% /cub dodaj %player%"
- else:
- send "&3&o>> &7Nie masz &364 bloków szmaragdów&7!"
- stop
- if arg 1 is "dodaj":
- if arg 2 is set:
- execute console command "pex user %name of player% add worldguard.*"
- execute player command "rg addowner %name of player% %arg 2%"
- execute console command "pex user %name of player% remove worldguard.*"
- send "&3&o>> &7Dodales gracza &3%arg 2% &7do terenu!"
- else:
- send "&3&o>> &7Podaj nick gracza!"
- stop
- if arg 1 is "wyrzuc":
- if arg 2 is set:
- execute console command "pex user %name of player% add worldguard.*"
- execute player command "rg removeowner %name of player% %arg 2%"
- execute player command "pex user %name of player% remove worldguard.*"
- send "&3&o>> &7Usunales gracza &3%arg 2% &7z terenu!"
- else:
- send "&3&o>> &7Podaj nick gracza!"
- stop
- if arg 1 is "help":
- if arg 2 is not set:
- send "&7&m==============&7[&3CUB&7]&7&m=============="
- send "&3/cub help &7-pokazuje to menu"
- send "&3/cub zaloz &7-zabezpiecza teren 20x20"
- send "&3/cub extra &7-zabezpiecza teren 50x50"
- send "&3/cub dodaj [NICK] &7-dodaje gracza"
- send "&3/cub wyrzuc [NICK] &7-usuwa gracza"
- send "&3/cub usun &7-usuwa zabezpieczenie terenu"
- send "&3/cub dom &7-teleportuje do domu"
- send " "
- send "&7&m================================"
- if arg 1 is "usun":
- if arg 2 is not set:
- if {cub.set.%player%} is true:
- execute console command "rg remove -w LC %name of player%"
- command "run %player% /rg remove %player%"
- send "&3&o>> &7Usunales teren!"
- set {cub.set.%player%} to false
- command "run %player% /i emerald 128"
- else:
- send "&3&o>> &7Nie masz swojego terenu!"
- if arg 1 is "dom":
- if arg 2 is not set:
- if {cub.set.%player%} is true:
- set {cubtp.%player%} to true
- send "&3&o>> &7Teleportacja za &35 &7sekund!"
- set {cubtpl} to location of player
- wait 1 second
- if {cubtpl} isn't location of player:
- send "&3&o>> &7Teleportacja zostala przerwana!"
- set {cubtp.%player%} to false
- stop
- wait 1 second
- if {cubtpl} isn't location of player:
- send "&3&o>> &7Teleportacja zostala przerwana!"
- set {cubtp.%player%} to false
- stop
- wait 1 second
- if {cubtpl} isn't location of player:
- send "&3&o>> &7Teleportacja zostala przerwana!"
- set {cubtptp.%player%} to false
- stop
- wait 1 second
- if {cubtpl} isn't location of player:
- send "&3&o>> &7Teleportacja zostala przerwana!"
- set {cubtptp.%player%} to false
- stop
- wait 1 second
- if {cubtpl} isn't location of player:
- send "&3&o>> &7Teleportacja zostala przerwana!"
- set {cubtptp.%player%} to false
- stop
- teleport player to {cubdom.%player%}
- send "&3&o>> &7Zostales przeteleportowany na swoj teren!"
- else:
- send "&3&o>> &7Nie masz swojego terenu!"
- if arg 1 is "autor":
- if arg 2 is not set:
- send "&7&m==============&7[&3CUB&7]&7&m=============="
- send " "
- send " "
- send "&7&m================================"
- if arg 1 is not set:
- if arg 2 is not set:
- send "&7&m==============&7[&3CUB&7]&7&m=============="
- send "&3/cub help &7-pokazuje to menu"
- send "&3/cub zaloz &7-zabezpiecza teren"
- send "&3/cub extra &7-zabezpiecza teren 50x50"
- send "&3/cub dodaj [NICK] &7-dodaje gracza"
- send "&3/cub wyrzuc [NICK] &7-usuwa gracza"
- send "&3/cub usun &7-usuwa zabezpieczenie terenu"
- send "&3/cub dom &7-teleportuje do domu"
- send " "
- send "&7&m================================"
- on command "cuboid zaloz" or "cub zaloz":
- if {cub.set.%player%} is true:
- cancel event
- send "&3&o>> &7Posiadasz juz swoj teren!"
Advertisement
Add Comment
Please, Sign In to add comment