kondziu2k 0 Opublikowano 6 sierpnia 2017 Udostępnij Opublikowano 6 sierpnia 2017 Siema wszystkim, dodacie mi do skryptu permisje dla vip svipa evipa żeby miał większy claim o 2... np: chunk.vip : 6 chunków, chunk.svip : 8 chunków do claimowania.... I tak dalej. Z góry dzięki Spoiler options: #MESSAGES Message when chunk isn't yours: &cTen chunk nie jest twoj! Chunk is already claimed: &cThat chunk is already claimed! PVP is disabled: &cPVP jest wylaczone na twoim chanku! PVE is disabled: &cMozesz zabijac zwierzeta/moby na tym chanku! Interact is disabled: &cNie mozesz polaczyc sie z tym chunkiem! Chunk limit reached: &cOsiagnoles Maksymalna liczbe chunkow! Chunk claimed: &aZaklaimowano Chunk! Chunk claimed for another player: &aChunk sklajmowany przez %arg 2% Chunk unclaimed: &aChunk odklajmowany All chunks unclaimed: &aOdklajmowales swoje %{_number}% chunks! Not a claimed chunk: &cChunk nie jest sklajmowany! Player already enabled: &cYou already have enabled that player to that chunk Player already disabled: &cYou already have removed that player from that chunk Not enough money: &cYou haven't got enough money to claim a chunk Money paid for the chunk: &aYou paid %{chunckprice.%player%}% to buy that chunk PVP is disabled in unclaimed chunks: &cPVP is disabled in unclaimed chunks Ender portals are disabled: &cEnder portals are disabled in this world Nether portals are disabled: &cNether portals are disabled in this chunk General infomations: General infomations Price of next chunk: Price of next chunk Owned chunks: Owned chunks That chunk: That chunk Owner: Owner Allowed players: Allowed players Chunk is empty, there's no informations to show: Chunk is empty, there's no informations to show #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: 4 #Economy options: Use economy: false Chunk price: 500 Ramp price: 500 #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: 50 #Protection options: Protect unclaimed chunks: false PVP in unclaimed chunks: false PVP disabled by default in claimed chunks: true Interactions disabled by default in claimed chunks: true PVE disabled by default in claimed chunks: false #World otpions: Enable MychunkSkript only in a few worlds: false Worlds where the plugin is enabled: Auria, erlend. #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: false #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 "&cPlease, use one of these commands:" message "&a ( ) = optionnal arguments" message "&a < > = arguments that you have to put" message "&b/chunk claim &6(player)" message "&b/chunk unclaim &6(all)" message "&b/chunk dodaj &6<player>" message "&b/chunk usun &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 "pomoc": player has permission "{@/chunk help permission}" message "&cPlease, use one of these commands:" message "&a ( ) = optionnal arguments" message "&a < > = arguments that you have to put" message "&b/chunk claim &6(player)" message "&b/chunk unclaim &6(all)" message "&b/chunk dodaj &6<player>" message "&b/chunk usun &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 "ActivĂ©" set {_pvp} to "ActivĂ©" set {_interact} to "ActivĂ©" loop {nointeract chunk::*}: loop-value is chunk at player: set {_interact} to "DĂ©sactivĂ©" loop {nopve chunks::*}: loop-value is chunk at player: set {_pve} to "DĂ©sactivĂ©" loop {nopvp chunks::*}: loop-value is chunk at player: set {_pvp} to "DĂ©sactivĂ©" 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 "{@Chunk nie sklajmowany}" 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 "dodaj" or "usun": 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 Odnośnik do komentarza https://skript.pl/temat/20568-dodacie-mi-co%C5%9B-do-skryptu/ Udostępnij na innych stronach Więcej opcji udostępniania...
Pytanie
kondziu2k 0
Siema wszystkim, dodacie mi do skryptu permisje dla vip svipa evipa żeby miał większy claim o 2... np: chunk.vip : 6 chunków, chunk.svip : 8 chunków do claimowania.... I tak dalej. Z góry dzięki
Odnośnik do komentarza
https://skript.pl/temat/20568-dodacie-mi-co%C5%9B-do-skryptu/Udostępnij na innych stronach
0 odpowiedzi na to pytanie
Rekomendowane odpowiedzi