Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #MESSAGES
- Message when chunk isn't yours: &cTen chunk nie jest twój!
- Chunk is already claimed: &cTen chunk jest już zajęty!
- PVP is disabled: &cPVP jest wyłączyone w tym chunku!
- PVE is disabled: &cNie możesz zabijać mobów na tym chunku!
- Interact is disabled: &cInterakcja na tym chunku została wyłączona!
- Chunk limit reached: &cOsiągnołeś maksimum chunków!
- Chunk claimed: &aZajołeś ten chunk (polecam F3 + G aby zobaczyć do kąd jest chunk)
- Chunk claimed for another player: &aChunk zajęty przez gracza %arg 2%
- Chunk unclaimed: &aChunk sprzedany
- All chunks unclaimed: &aWłaśnie szrzedałeś %{_number}% chunków!
- Not a claimed chunk: &cTen chunk nie jest zajęty!
- Player already enabled: &cjuż dodałeś tego gracza do twojego chunku!
- Player already disabled: &cjuż usunąłeś tego gracza ze swojego chunku!
- Not enough money: &cNie masz wystarczająco pikseli aby zjąć chunk polecam kupić piksele na chlewik.tk.
- Money paid for the chunk: &aZapłaciłeś %{chunckprice.%player%}% aby kupić ten chunk.
- PVP is disabled in unclaimed chunks: &cPVP jest wyłączone na chunkach nie zclaimowanych.
- Ender portals are disabled: &cEnder portale zostały wyłączone na tym świecie.
- Nether portals are disabled: &cNether portale zostały wyłączone na tym świecie.
- General infomations: Podstawowe informacje
- Price of next chunk: Koszt następnego chunku
- Owned chunks: Zajęte chunki
- That chunk: Ten chunk
- Owner: Właściciel
- Allowed players: Dodani gracze
- Chunk is empty, there's no informations to show: Chunk jest pusty nie mogę podać informacji
- #OTHER OPTIONS:
- #Permissions options:
- Bypass permission: chunk.admin
- /chunk claim permission: chunk.claim
- /chunk pvp on/off permission: chunk.pvp
- /chunk pve on/off permission: chunk.pve
- /chunk interact on/off permission: chunk.interact
- /chunk unclaim permission: chunk.unclaim
- /chunk unclaim all permission: chunk.unclaim
- /chunk information permission: chunk.info
- /chunk add/remove <player> permission: chunk.manage.members
- /chunk help permission: chunk.help
- Chunk limit: 12312312312312
- #Economy options:
- Use economy: true
- Chunk price: 250.0
- Ramp price: 0 #value added to the price after each
- #chunk bought. set it to 0 to disable it
- First chunk free: true
- Refund on unclaim: true
- Refund percent: 75
- #Protection options:
- Protect unclaimed chunks: false
- PVP in unclaimed chunks: true
- PVP disabled by default in claimed chunks: true
- Interactions disabled by default in claimed chunks: true
- PVE disabled by default in claimed chunks: true
- #World otpions:
- Enable MychunkSkript only in a few worlds: true
- Worlds where the plugin is enabled: Island2.
- #You can separate world name as you want, like this: auria-erlend or this:
- #auria,erlend. The plugins only check if the world where you are is in the
- #world list.You can also do like that: auriaerlend XD
- Allow nether in MychunkSkript worlds: true
- Allow end in MychunkSkript worlds: true
- #CODE
- on portal:
- {@Enable MychunkSkript only in a few worlds} is true:
- "{@Worlds where the plugin is enabled}" does not contain "%player's world%"
- stop
- if block at player is end portal:
- {@Allow end in MychunkSkript worlds} is false
- set {_lastloc.%player%} to location of player
- wait 3 second
- add 1 to y coordinates of {_lastloc.%player%}
- teleport player to {_lastloc.%player%}
- push player 3 meters to the right
- message "{@Ender portals are disabled}"
- if block at player is nether portal:
- {@Allow nether in MychunkSkript worlds} is false
- cancel event
- message "{@Nether portals are disabled}"
- #MAIN COMMAND
- command /chunk [<text>] [<text>] [<player>]:
- trigger:
- {@Enable MychunkSkript only in a few worlds} is true:
- "{@Worlds where the plugin is enabled}" does not contain "%player's world%"
- stop
- arg 1 is not set:
- player has permission "{@/chunk help permission}"
- message "&cProszę, użyj jednej z tych komend:"
- message "&a ( ) = opcjonalny argument"
- message "&a < > = argument wymagany"
- message "&b/chunk claim &6(player)"
- message "&b/chunk unclaim &6(all)"
- message "&b/chunk add &6<player>"
- message "&b/chunk remove &6<player>"
- message "&b/chunk info"
- message "&b/chunk pvp &6(on/off)"
- message "&b/chunk pve &6(on/off)"
- message "&b/chunk interact &6(on/off)"
- arg 1 is "help":
- player has permission "{@/chunk help permission}"
- message "&cProszę, użyj jednej z tych komend:"
- message "&a ( ) = opcjonalny argument"
- message "&a < > = argument wymagany"
- message "&b/chunk claim &6(player)"
- message "&b/chunk unclaim &6(all)"
- message "&b/chunk add &6<player>"
- message "&b/chunk remove &6<player>"
- message "&b/chunk info"
- message "&b/chunk pvp &6(on/off)"
- message "&b/chunk pve &6(on/off)"
- message "&b/chunk interact &6(on/off)"
- arg 1 is "info":
- player has permission "{@/chunk information permission}"
- set {_pve} to "Aktywne"
- set {_pvp} to "Aktywne"
- set {_interact} to "Aktywne"
- loop {nointeract chunk::*}:
- loop-value is chunk at player:
- set {_interact} to "Nie aktywne"
- loop {nopve chunks::*}:
- loop-value is chunk at player:
- set {_pve} to "Nie aktywne"
- loop {nopvp chunks::*}:
- loop-value is chunk at player:
- set {_pvp} to "Nie aktywne"
- message "&6&l{@General infomations}:"
- {@Use economy} is true:
- {free.%player%} is not set:
- set {_price} to {@Chunk price}
- {free.%player%} is set:
- {chunckprice.%player%} is greater or equal to {@Chunk price}:
- set {_price} to {chunckprice.%player%} + {@Ramp price}
- {chunckprice.%player%} is less than {@Chunk price}:
- set {_price} to {@Chunk price}
- {@First chunk free} is true:
- {free.%player%} is not set
- set {_price} to 0
- message "&b{@Price of next chunk}: &6%{_price}%"
- set {_number} to 0
- loop {protected chunks %player%::*}:
- add 1 to {_number}
- message "&b{@Owned chunks}: &6%{_number}%"
- message "&6&l{@That chunk}:"
- message "&b%chunk at player%"
- loop {protected chunks::*}:
- loop-value is chunk at player
- message "&b{@Owner}: &6%{chunk.%chunk at player%::owner}%" to sender
- message "&b{@Allowed players}: &6%{chunk.%chunk at player%::*}%"
- message "&bPVP: &6%{_pvp}%"
- message "&bPVE: &6%{_pve}%"
- message "&bInteractions: &6%{_interact}%"
- stop
- message "&a{@Chunk is empty, there's no informations to show}"
- arg 1 is "unclaim":
- arg 2 is not set:
- player has permission "{@/chunk unclaim permission}"
- loop {protected chunks %player%::*}:
- loop-value is chunk at player:
- remove chunk at player from {protected chunks::*}
- remove chunk at player from {protected chunks %player%::*}
- remove chunk at player from {nointeract chunk::*}
- remove player from {chunk.%chunk at player%::owner}
- clear {chunk.%chunk at player%::*}
- {@Use economy} is true:
- {@Refund on unclaim} is true:
- set {_refund} to {@Refund percent}*0.01*{chunckprice.%player%}
- add {_refund} to player's money
- set {chunckprice.%player%} to {chunckprice.%player%}-{@Ramp price}
- loop {protected chunks::*}:
- loop-value is chunk at player:
- message "{@Message when chunk isn't yours}"
- stop
- message "{@Not a claimed chunk}"
- arg 2 is "all":
- player has permission "{@/chunk unclaim all permission}"
- set {_number} to 0
- loop {protected chunks %player%::*}:
- remove loop-value from {protected chunks::*}
- remove loop-value from {protected chunks %player%::*}
- remove chunk at player from {nointeract chunk::*}
- remove player from {chunk.%loop-value%::owner}
- clear {chunk.%loop-value%::*}
- {@Use economy} is true:
- {@Refund on unclaim} is true:
- set {_refund} to {@Refund percent}*0.01*{chunckprice.%player%}
- add {_refund} to player's money
- set {chunckprice.%player%} to {chunckprice.%player%}-{@Ramp price}
- add 1 to {_number}
- set {chunckprice.%player%} to {@Chunk price}
- message "{@All chunks unclaimed}"
- arg 1 is "claim":
- player has permission "{@/chunk claim permission}"
- loop {protected chunks::*}:
- loop-value is chunk at player
- message "{@Chunk is already claimed}"
- stop
- arg 2 is not set:
- {chunks.%player%} is not set:
- set {chunks.%player%} to 0
- add 1 to {chunks.%player%}
- {chunks.%player%} is greater than {@Chunk limit}:
- player does not have permission "{@Bypass permission}":
- message "{@Chunk limit reached}"
- stop
- {@Use economy} is true:
- {free.%player%} is not set:
- set {chunckprice.%player%} to {@Chunk price}
- {free.%player%} is set:
- {chunckprice.%player%} is greater or equal to {@Chunk price}:
- set {chunckprice.%player%} to {chunckprice.%player%} + {@Ramp price}
- {chunckprice.%player%} is less than {@Chunk price}:
- set {chunckprice.%player%} to {@Chunk price}
- {@First chunk free} is true:
- {free.%player%} is not set
- set {chunckprice.%player%} to 0
- set {free.%player%} to 1
- player's money is greater or equal to {chunckprice.%player%}:
- remove {chunckprice.%player%} from player's money
- player's money is less than {chunckprice.%player%}:
- message "{@Not enough money}"
- stop
- message "{@Money paid for the chunk}"
- message "{@Chunk claimed}"
- {@Interactions disabled by default in claimed chunks} is true:
- add chunk at player to {nointeract chunk::*}
- {@PVP disabled by default in claimed chunks} is true:
- add chunk at player to {nopvp chunks::*}
- {@PVE disabled by default in claimed chunks} is true:
- add chunk at player to {nopve chunks::*}
- set {chunk.%chunk at player%::owner} to "%player%"
- add chunk at player to {protected chunks::*}
- add chunk at player to {protected chunks %player%::*}
- add chunk at player to {nointeract chunk::*}
- arg 2 is set:
- player has permission "{@Bypass permission}"
- {chunks.%arg 2%} is not set:
- set {chunks.%arg 2%} to 0
- add 1 to {chunks.%arg 2%}
- message "{@Chunk claimed for another player}"
- {@Interactions disabled by default in claimed chunks} is true:
- add chunk at player to {nointeract chunk::*}
- {@PVP disabled by default in claimed chunks} is true:
- add chunk at player to {nopvp chunks::*}
- {@PVE disabled by default in claimed chunks} is true:
- add chunk at player to {nopve chunks::*}
- set {chunk.%chunk at player%::owner} to "%arg 2%"
- add chunk at player to {protected chunks::*}
- add chunk at player to {protected chunks %arg 2%::*}
- arg 1 is "add" or "remove":
- player has permission "{@/chunk add/remove <player> permission}"
- arg 2 is set
- loop {protected chunks %player%::*}:
- loop-value is chunk at player:
- set {_protec.%player%} to 1
- {_protec.%player%} is 1:
- "%{chunk.%chunk at player%::*}%" contains "%arg 2%":
- arg 1 is "add":
- message "{@Player already enabled}"
- stop
- "%{chunk.%chunk at player%::*}%" does not contain "%arg 2%":
- arg 1 is "remove":
- message "{@Player already disabled}"
- stop
- arg 1 is "add":
- message "&a%sender% has added you to their property!" to arg 2 parsed as player
- message "&aYou have added %arg 2% to your property!" to sender
- add arg 2 to {chunk.%chunk at player%::*}
- stop
- arg 1 is "remove":
- message "&c%sender% has removed you from their property!" to arg 2 parsed as player
- message "&aYou have removed %arg 2% from your property!" to sender
- remove arg 2 from {chunk.%chunk at player%::*}
- stop
- player has permission "{@Bypass permission}":
- arg 1 is "add":
- message "&a%sender% has added you to a property!" to arg 2 parsed as player
- message "&aYou have added %arg 2% to a property!" to sender
- add arg 2 to {chunk.%chunk at player%::*}
- stop
- arg 1 is "remove":
- message "&c%sender% has removed you from their property!" to arg 2 parsed as player
- message "&aYou have removed %arg 2% from your property!" to sender
- remove arg 2 from {chunk.%chunk at player%::*}
- stop
- message "{@Message when chunk isn't yours}"
- arg 1 is "pvp":
- player has permission "{@/chunk pvp on/off permission}"
- loop {protected chunks %player%::*}:
- loop-value is chunk at player:
- set {_protec.%player%} to 1
- player has permission "{@Bypass permission}":
- set {_protec.%player%} to 1
- {_protec.%player%} is not 1:
- message "{@Message when chunk isn't yours}"
- {_protec.%player%} is 1
- arg 1 is not set:
- loop {nopvp chunks::*}:
- loop-value is chunk at player:
- remove chunk at player from {nopvp chunks::*}
- message "&aPuting on PVP"
- stop
- add chunk at player to {nopvp chunks::*}
- message "&aPuting off PVP"
- arg 2 is "off":
- add chunk at player to {nopvp chunks::*}
- message "&aPuting off PVP"
- arg 2 is "on":
- remove chunk at player from {nopvp chunks::*}
- message "&aPuting on PVP"
- arg 1 is "pve":
- player has permission "{@/chunk pve on/off permission}"
- loop {protected chunks %player%::*}:
- loop-value is chunk at player:
- set {_protec.%player%} to 1
- player has permission "{@Bypass permission}":
- set {_protec.%player%} to 1
- {_protec.%player%} is not 1:
- message "{@Message when chunk isn't yours}"
- {_protec.%player%} is 1
- arg 1 is not set:
- loop {nopve chunks::*}:
- loop-value is chunk at player:
- remove chunk at player from {nopve chunks::*}
- message "&aPuting on PVE"
- stop
- add chunk at player to {nopve chunks::*}
- message "&aPuting off PVE"
- stop
- arg 2 is "off":
- add chunk at player to {nopve chunks::*}
- message "&aPuting off PVE"
- stop
- arg 2 is "on":
- remove chunk at player from {nopve chunks::*}
- message "&aPuting on PVE"
- stop
- arg 1 is "interact":
- player has permission "{@/chunk interact on/off permission}"
- loop {protected chunks %player%::*}:
- loop-value is chunk at player:
- set {_protec.%player%} to 1
- player has permission "{@Bypass permission}":
- set {_protec.%player%} to 1
- {_protec.%player%} is not 1:
- message "{@Message when chunk isn't yours}"
- {_protec.%player%} is 1
- arg 1 is not set:
- loop {nointeract chunk::*}:
- loop-value is chunk at player:
- remove chunk at player from {nointeract chunk::*}
- stop
- add chunk at player to {nointeract chunk::*}
- arg 2 is "off":
- message "&aPutting off interactions"
- add chunk at player to {nointeract chunk::*}
- arg 2 is "on":
- message "&aPutting on interactions"
- remove chunk at player from {nointeract chunk::*}
- #CHUNK PROTECTION
- on break:
- {@Enable MychunkSkript only in a few worlds} is true:
- "{@Worlds where the plugin is enabled}" does not contain "%player's world%"
- stop
- {@Protect unclaimed chunks} is true:
- set {_protec.%player%} to 1
- loop {protected chunks::*}:
- loop-value is chunk at player:
- set {_protec.%player%} to 1
- {_protec.%player%} is 1
- loop {protected chunks %player%::*}:
- loop-value is chunk at player:
- stop
- loop {chunk.%chunk at player%::*}:
- loop-value is player
- stop
- player has permission "{@Bypass permission}":
- stop
- message "{@Message when chunk isn't yours}"
- cancel event
- on place:
- {@Enable MychunkSkript only in a few worlds} is true:
- "{@Worlds where the plugin is enabled}" does not contain "%player's world%"
- stop
- {@Protect unclaimed chunks} is true:
- set {_protec.%player%} to 1
- loop {protected chunks::*}:
- loop-value is chunk at player:
- set {_protec.%player%} to 1
- {_protec.%player%} is 1
- loop {protected chunks %player%::*}:
- loop-value is chunk at player:
- stop
- loop {chunk.%chunk at player%::*}:
- loop-value is player
- stop
- player has permission "{@Bypass permission}":
- stop
- message "{@Message when chunk isn't yours}"
- cancel event
- on damage of an entity:
- {@Enable MychunkSkript only in a few worlds} is true:
- "{@Worlds where the plugin is enabled}" does not contain "%attacker's world%"
- stop
- attacker is a player:
- victim is not a player:
- loop {nopve chunks::*}:
- loop-value is chunk at attacker:
- message "{@PVE is disabled}" to attacker
- cancel event
- victim is a player:
- loop {nopvp chunks::*}:
- loop-value is chunk at attacker:
- attacker has permission "{@Bypass permission}":
- stop
- cancel event
- message "{@PVP is disabled}" to attacker
- {@PVP in unclaimed chunks} is false:
- loop {protected chunks::*}:
- loop-value is chunk at attacker:
- set {_protec.%attacker%} to 1
- {_protec.%attacker%} is not set:
- cancel event
- message "{@PVP is disabled in unclaimed chunks}"
- attacker is not a player:
- victim is a player:
- loop {nopve chunks::*}:
- loop-value is chunk at attacker:
- message "{@PVE is disabled}" to attacker
- cancel event
- on rightclick:
- {@Enable MychunkSkript only in a few worlds} is true:
- "{@Worlds where the plugin is enabled}" does not contain "%player's world%"
- stop
- player has permission "{@Bypass permission}":
- stop
- loop {protected chunks::*}:
- loop-value is chunk at player:
- set {_protec.%player%} to 1
- {@Protect unclaimed chunks} is true:
- {_protec.%player%} is not set
- cancel event
- {_protec.%player%} is 1
- loop {protected chunks %player%::*}:
- loop-value is chunk at player:
- stop
- loop {chunk.%chunk at player%::*}:
- loop-value is player
- stop
- loop {nointeract chunk::*}:
- loop-value is chunk at player:
- message "{@Interact is disabled}"
- cancel event
- #notify
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement