Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /sklep [<text>]:
- trigger:
- arg-1 is not set:
- new Inventory "&6SKLEP";
- "&6SKLEP".Inventory.setRow{1};
- "&6SKLEP".Inventory.setItem{1, 1 golden apple:1 named "&6ITEMY TYMCZASOWE" with lore "&7Kliknij, aby zakupic itemy!||"};
- "&6SKLEP".Inventory.setCommand{1, "sklep tymczasowe"};
- "&6SKLEP".Inventory.setExecutor{1, "player"};
- "&6SKLEP".Inventory.setItem{9, 1 golden apple:1 named "&6ITEMY STALE" with lore "&7Kliknij, aby zakupic itemy!||"};
- "&6SKLEP".Inventory.setCommand{9, "sklep stale"};
- "&6SKLEP".Inventory.setExecutor{9, "player"};
- "&6SKLEP".Inventory.display{player};
- arg-1 is "stale":
- new Inventory "&6STALE";
- "&6STALE".Inventory.setRow{1};
- "&6STALE".Inventory.setItem{1, 1 wool named "&4&lHARDCORE! &7(10$)" with lore "&7Kliknij, aby przejsc dalej!"};
- "&6STALE".Inventory.setCommand{1, "sklep shardcore"};
- "&6STALE".Inventory.setExecutor{1, "player"};
- "&6STALE".Inventory.display{player};
- arg-1 is "shardcore":
- new Inventory "&6HARDCORE";
- "&6HARDCORE".Inventory.setRow{1};
- "&6HARDCORE".Inventory.setItem{1, 1 golden apple:1 named "&4&lKOX!" with lore "&7Kliknij, aby zakupic!"};
- "&6HARDCORE".Inventory.setCommand{1, "sklep skoxhard"};
- "&6HARDCORE".Inventory.setExecutor{1, "player"};
- "&6HARDCORE".Inventory.setItem{2, 1 ender pearl named "&5&lPERLA!" with lore "&7Kliknij, aby zakupic!"};
- "&6HARDCORE".Inventory.setCommand{2, "sklep sperlahard"};
- "&6HARDCORE".Inventory.setExecutor{2, "player"};
- "&6HARDCORE".Inventory.display{player};
- arg-1 is "skoxhard":
- if {staly::kox::hardcore::%player%} is false:
- remove 10 from player's balance
- set {staly::kox::hardcore::%player%} to true
- send "&7Zakupiles stalego koxa! &7(tryb: HARDCORE)"
- else:
- send "&7Ten przedmiot jest juz zakupiony!"
- arg-1 is "sperlahard":
- if {staly::perla::hardcore::%player%} is false:
- remove 10 from player's balance
- set {staly::perla::hardcore::%player%} to true
- send "&7Zakupiles stala perle! &7(tryb: HARDCORE)"
- else:
- send "&7Ten przedmiot jest juz zakupiony!"
- command /gui:
- trigger:
- new Inventory "&6SKLEP";
- "&6ARENY".Inventory.setRow{1};
- "&6ARENY".Inventory.setItem{1, 1 golden apple:1 named "&4&lHARCORE" with lore "&7Aktualnie: &aonline&7."};
- "&6ARENY".Inventory.setCommand{1, "arena hardcore"};
- "&6ARENY".Inventory.setExecutor{1, "player"};
- "&6ARENY".Inventory.setItem{2, 1 diamond sword of knockback 2 with no nbt named "&b&lKNOCKBACK" with lore "&7Aktualnie: &aonline&7."};
- "&6ARENY".Inventory.setCommand{2, "arena knockback"};
- "&6ARENY".Inventory.setExecutor{2, "player"};
- "&6ARENY".Inventory.setItem{3, 1 golden apple:0 of lure 1 with no nbt named "&6&lMUTATED APPLE" with lore "&7Aktualnie: &aonline&7."};
- "&6ARENY".Inventory.setCommand{3, "arena mutated"};
- "&6ARENY".Inventory.setExecutor{3, "player"};
- "&6ARENY".Inventory.display{player};
- on load:
- loop 54 times:
- add 1 to {_a}
- "&6SKLEP".Inventory.removeItem{{_a}};
- "&6STALE".Inventory.removeItem{{_a}};
- "&6HARDCORE".Inventory.removeItem{{_a}};
- "&6ARENY".Inventory.removeItem{{_a}};
- on command:
- if command is "money" or "monety" or "kasa" or "coin" or "coins":
- cancel event
- send "&7Kasa: &e%player's money%"
- on place cobblestone:
- if player's world is "%{mapaKnockback}%":
- wait 6.5 seconds
- set block to air
- on eat:
- if event-item is golden apple:0:
- if player's world is "%{mapaMutated}%":
- cancel event
- remove 1 golden apple:0 from player
- apply regeneration 10 to player for 5 seconds
- apply absorption 2 to player for 30 seconds
- command /cleareffects [<player>]:
- trigger:
- if executor is console:
- if arg-1 is online:
- remove regeneration from the arg-1
- remove fire resistance from the arg-1
- remove absorption from the arg-1
- remove resistance from the arg-1
- remove strength from the arg-1
- remove speed from the arg-1
- else:
- send "&cBlad: &7Komenda jest zablokowana przez &nCONSOLE&7."
- command /arena [<text>] [<text>]:
- trigger:
- arg-1 is "hardcore":
- if player's world is "%{mapaSpawn}%":
- if {onlineHardcore} is "online":
- teleport player to {hardcore}
- set action bar of player to "&7Dolaczyles do areny &ehardcore&7."
- execute console command "cleareffects %player%"
- give diamond helmet of protection 4 and unbreaking 3 to player's helmet
- give diamond chestplate of protection 4 and unbreaking 3 to player's chestplate
- give diamond leggings of protection 4 and unbreaking 3 to player's leggings
- give diamond boots of protection 4 and unbreaking 3 to player's boots
- give diamond sword of sharpness 5 and fire aspect 2 to player
- give 2 golden apple:1 to player
- give 5 golden apple:0 to player
- give 1 ender pearl to player
- if player has permission "account.vip":
- give 1 golden apple:1 to player
- give 2 golden apple:0 to player
- give 1 ender pearl to player
- give bow of punch 2 and infinity 1 to player
- give diamond helmet of protection 4 and unbreaking 3 to player
- give diamond chestplate of protection 4 and unbreaking 3 to player
- give diamond leggings of protection 4 and unbreaking 3 to player
- give diamond boots of protection 4 and unbreaking 3 to player
- give arrow to player
- else:
- send "&cBlad: &7Tryb jest wylaczony!"
- else:
- send "&cBlad: &7Jestes juz na arenie!"
- arg-1 is "knockback":
- if player's world is "%{mapaSpawn}%":
- if {onlineKnockback} is "online":
- teleport player to {knockback}
- set action bar of player to "&7Dolaczyles do areny &eknockback&7."
- execute console command "cleareffects %player%"
- give diamond helmet of protection 4 and unbreaking 3 to player's helmet
- give diamond chestplate of protection 4 and unbreaking 3 to player's chestplate
- give diamond leggings of protection 4 and unbreaking 3 to player's leggings
- give diamond boots of protection 4 and unbreaking 3 to player's boots
- give diamond sword of sharpness 3 to player
- give diamond sword of knockback 2 to player
- give bow of punch 2 and infinity 1 to player
- give 1 golden apple:1 to player
- give 3 golden apple:0 to player
- give 2 ender pearl to player
- give arrow to player
- if player has permission "account.vip":
- give 1 golden apple:1 to player
- give 2 golden apple:0 to player
- give 2 ender pearl to player
- else:
- send "&cBlad: &7Tryb jest wylaczony!"
- else:
- send "&cBlad: &7Jestes juz na arenie!"
- arg-1 is "mutated":
- if player's world is "%{mapaSpawn}%":
- if {onlineMutated} is "online":
- teleport player to {mutated}
- set action bar of player to "&7Dolaczyles do areny &emutated_apple&7."
- execute console command "cleareffects %player%"
- give diamond helmet of protection 4 and unbreaking 3 to player's helmet
- give diamond chestplate of protection 4 and unbreaking 3 to player's chestplate
- give diamond leggings of protection 4 and unbreaking 3 to player's leggings
- give diamond boots of protection 4 and unbreaking 3 to player's boots
- give diamond sword of sharpness 5 and fire aspect 2 to player
- give iron sword of knockback 1 to player
- give 3 golden apple:0 named "&6&lMUTATED APPLE" to player
- give 1 ender pearl to player
- if player has permission "account.vip":
- give 5 golden apple:0 named "&6&lMUTATED APPLE" to player
- give 1 ender pearl to player
- else:
- send "&cBlad: &7Tryb jest wylaczony!"
- else:
- send "&cBlad: &7Jestes juz na arenie!"
- arg-1 is "ustaw":
- if player has permission "arena.set":
- arg-2 is "hardcore":
- set {hardcore} to location of player
- send "&7Arena &ehardcore &7zostala ustawiona!"
- arg-2 is "mutated":
- set {mutated} to location of player
- send "&7Arena &emutated &7zostala ustawiona!"
- arg-2 is "knockback":
- set {knockback} to location of player
- send "&7Arena &eknockback &7zostala ustawiona!"
- else:
- send "&cBlad: &7Nie masz uprawnien."
- on respawn:
- if player's world is "%{mapaHardcore}%":
- teleport player to {hardcore}
- send "&8&m-----------------------------"
- send "&6Zostales zabity!"
- send "&6Aby, zmienic tryb wpisz &7/spawn."
- send "&8&m-----------------------------"
- if player's world is "%{mapaMutated}%":
- teleport player to {mutated}
- send "&8&m-----------------------------"
- send "&6Zostales zabity!"
- send "&6Aby, zmienic tryb wpisz &7/spawn."
- send "&8&m-----------------------------"
- if player's world is "%{mapaKnockback}%":
- teleport player to {knockback}
- send "&8&m-----------------------------"
- send "&6Zostales zabity!"
- send "&6Aby, zmienic tryb wpisz &7/spawn."
- send "&8&m-----------------------------"
- command /setspawn [<text>]:
- trigger:
- if player has permission "spawn.set":
- set {spawn} to location of player
- send "&7Arena &espawn &7zostala ustawiona!"
- else:
- send "&cBlad: &7Nie masz uprawnien!"
- command /spawn [<offlineplayer>] [<text>]:
- trigger:
- if arg-1 is not set:
- if {spawn} is set:
- if player has permission "spawn.admin":
- teleport player to {spawn}
- clear player's inventory
- send "&7Teleportacja na &espawn&7."
- send "&7Szybsza teleportacja dzieki &euprawnieniu&7."
- stop
- set {_posx} to x-location of player
- set {_posz} to z-location of player
- set {_posy} to y-location of player
- send "&7Teleportacja na &espawn&7. &4&nNie ruszaj sie."
- loop 4 times:
- wait 1 second
- difference between x-location of player and {_posx} is bigger than 0.5:
- send "&cTeleportacja nie powiodla sie."
- stop
- difference between z-location of player and {_posz} is bigger than 0.5:
- send "&cTeleportacja nie powiodla sie."
- stop
- difference between y-location of player and {_posy} is bigger than 0.5:
- send "&cTeleportacja nie powiodla sie."
- stop
- teleport player to {spawn}
- clear player's inventory
- send "&7Teleportacja na &espawn&7."
- stop
- else:
- send "&cBlad: &7Nie odnaleziono spawnu."
- if arg-1 is set:
- if player has permission "other.spawn.teleport":
- if arg-1 is online:
- if {spawn} is set:
- teleport arg-1 to {spawn}
- send "&7Teleportacja gracza &e%arg-1% &7na &espawn&7."
- send "&7Zostales przeteleportowany na &espawn&7." to arg-1
- else:
- send "&cBlad: &7Nie odnaleziono spawnu."
- else:
- send "&cBlad: &7Ten gracz jest offline."
- #on heal:
- # if player is in world "spawn":
- # cancel event
- # message "test"
- # else:
- # stop
- command /maps:
- trigger:
- send "hc name: %{mapaHardcore}%"
- send "hc online: %{onlineHardcore}%"
- send "knock name: %{mapaKnockback}%"
- send "knock online: %{onlineKnockback}%"
- send "mutated name: %{mapaMutated}%"
- send "mutated online: %{onlineMutated}%"
- on load:
- if folder "plugins/rPvP" doesn't exists:
- create folder "plugins/rPvP"
- if file "plugins/rPvP/config.yml" doesn't exists:
- create file "plugins/rPvP/config.yml"
- download from "https://pastebin.com/raw/AinjX6Qz" to "plugins/AntyLogout/config.yml"
- set {mapaSpawn} to single value "rPvP.maps.spawn.name" get of "plugins/rPvP/config.yml"
- set {mapaHardcore} to single value "rPvP.maps.hardcore.name" get of "plugins/rPvP/config.yml"
- set {onlineHardcore} to single value "rPvP.maps.hardcore.online" get of "plugins/rPvP/config.yml"
- set {mapaKnockback} to single value "rPvP.maps.knockback.name" get of "plugins/rPvP/config.yml"
- set {onlineKnockback} to single value "rPvP.maps.knockback.online" get of "plugins/rPvP/config.yml"
- set {mapaMutated} to single value "rPvP.maps.mutated_apple.name" get of "plugins/rPvP/config.yml"
- set {onlineMutated} to single value "rPvP.maps.mutated.online" get of "plugins/rPvP/config.yml"
- set {itemsHardcorePlayer::*} to value list "rPvP.maps.hardcore.items.player" get of "plugins/rPvP/config.yml"
- set {itemsHardcoreVip::*} to value list "rPvP.maps.hardcore.items.vip" get of "plugins/rPvP/config.yml"
Advertisement
Add Comment
Please, Sign In to add comment