ChunkProtection - Easy Anti-Grief claiming plugin.

Discussion in 'Archived: Plugin Requests' started by MrTomTomHD, Sep 15, 2013.

  1. Offline

    MrTomTomHD

    Plugin category: Anti-Griefing Tools

    Suggested name: ChunkProtection

    What I want: Hello fellow developers, today i am requesting a plugin that has never been made before, their are some similar but are just badly coded etc.

    If you're a developer who wants their plugins to get heaps of downloads, this plugin is for you, many people want a plugin like this, not some plugin that involves signs tools etc.

    I want a plugin that allows a user to simply type /claim and it claims a chunk for them (16 blocks wide, 16 blocks long, and 256 blocks deep).

    If someone can create this for me, i will give you the highest donator rank when the server is open.

    THE COLOURS CODES ARE GREEN= &a RED = &c and the blue one is &9

    And whenever another player trys to damage a block, open a chest/door.
    They get this message:
    Show Spoiler
    [​IMG]


    Now i'm not 100% sure if this is possible, but i would like it so if you right click the ground with your 'hand', You get a message in the chat saying this..
    Show Spoiler
    [​IMG]

    Real Example:
    Show Spoiler
    [​IMG]


    Also a ability to give permission to a friend to build in all your chunks, message would look like so:
    Show Spoiler
    [​IMG]


    And once you have removed their permissions:
    Show Spoiler
    [​IMG]


    Also a permission for each group which could be like chunkprotection.claims.NumerOfClaimsALLOWED
    Example: chunkprotection.claims.10 (10 chunks are allowed to be claimed).
    And once you reach the limit you will get this message:
    Show Spoiler
    [​IMG]


    A command which allows you to unclaim all chunks (/unclaim all)
    The message you will get in chat:
    Show Spoiler
    [​IMG]


    And also the message when you do /claim and /unclaim
    Show Spoiler
    [​IMG]



    Ideas for commands:
    /claim - For claiming.
    /unclaim - For unclaiming
    /unclaim all - For unclaiming all.
    /cp - Plugin Version
    /cp bypass - Allows admins to modify other claims.
    /trust PLAYER - Give building rights.
    /untrust PLAYER - Remove building rights.
    /cp reload - Reload config.

    Ideas for permissions:
    chunkprotection.claim - Gives permission to claim.
    chunkprotection.unclaim - Gives permission to unclaim
    chunkprotection.unclaimall - Gives permission to unclaim all
    chunkprotection.bypass - Gives permission to admin bypass
    chunkprotection.addfriend - Gives permission to give a friend rights.
    chunkprotection.claims.[amountofchunks] - Amount of chunks the player can claim.
    chunkprotection.removefriend - Gives permission to remove a friends rights

    When I'd like it by:
    Hopefully by sunday or monday.
    I am hoping to open my server around that time, and cannot find a claim plugin that i like.
     
  2. Offline

    FlakDzn

  3. Offline

    MrTomTomHD

  4. Offline

    Assist

    MrTomTomHD
    I'll do this tomorrow, sounds easy and cool enough.
     
    MrTomTomHD likes this.
  5. Offline

    FlakDzn

    Thats weird it works for me just fine. ive been using it for 2 months
     
  6. Offline

    MrTomTomHD

    It's recognised in /pl, but when I do /claim or any of the commands, it says Unknown Command.
     
  7. Offline

    5thblock


    The table displayed is not a command, it is appended to /chunk.

    Examples:
    /chunk claim
    /chunk abandon
    /chunk trust
    etc.
     
  8. Offline

    FlakDzn

    Yes this is how the plugin commands work.
     
  9. Offline

    MrTomTomHD


    But i still prefer this plugin, with the right click thing and that :3

    Hopefully it's not too hard for someone to make it.

    Or is it possible for someone to edit iChunk to suit the messages i prefer?

    Thanks so much<3
     
  10. Offline

    FlakDzn

    Just saw the plugin page for ichunk its now abandoned. What a shame.
     
    MrTomTomHD likes this.
  11. Offline

    MrTomTomHD


    If this plugin gets developed, it will be better :)
     
  12. Offline

    MrTomTomHD


    Any progress? :) I guarantee this plugin will get famous!
     
  13. Offline

    L33m4n123

    Didn't see this thread till now. I am currently working on a Plugin that basicly does the same.
    if Assist does not want to do it I make it public^^
     
    MrTomTomHD likes this.
  14. Offline

    Assist

    MrTomTomHD
    Sorry, I completely forgot about this. I'll still do this, but not sure how long it's going to take, since I have a lot things to do already.
     
    MrTomTomHD likes this.
  15. Offline

    MrTomTomHD


    If you can make it that will be alright

    How long do you think it will take? i need it by sunday
     
  16. Offline

    Assist

    MrTomTomHD
    I can easily get it done by sunday. What do you want to protect the claimed chunks from? Block breaking? Tnt? Any interaction?
     
  17. Offline

    MrTomTomHD


    Thanks man that would be great :)

    Nearly everything, door opening, block breaking, tnt, block breaking.

    Everything a worldguard region would block.
     
  18. Offline

    Assist

    1. MrTomTomHD

    Here's some screenshots.
    http://imgur.com/uefu7pU,2nrOLu2,ywNp8zM,ZbrWpIw,D25LWcs,PIgQXMP#0

    It's not done yet, but it's working. I'll have to do some polishing, and add a couple more things, but it should be done by sunday, at least.

    Edit: Don't worry about the messages, I'll add a config for them later.

    UPDATE: MrTomTomHD
    Since the last update, I've added
    * /cp trust <player> - allows the target to interact with blocks and objects in the chunk the command sender is in. works even if target is not online
    * /cp untrust <player> - same thing as ^, but a nice versa.
    * /cp unclaimall - unclaims all of the chunks the command sender owns (if any)
    * chunkprotection.claim.[amount] - maximum amount of chunks a player can own. That's a permission btw.
    * config file for all of the possible messages
    * right clicking a non-objectish block with your hand displays the chunk info

    I feel like I'm forgetting something.. But anyways, unfortunately I can't work on this today, but it will definitely be done by tomorrow.

    UPDATE 2: MrTomTomHD
    Well it seems like Minecraft login and server sessions are down, I was just about to finish the plugin. I can still give the download link if you want, but I can't assure you that it's fully done, I might've forgotten something.

    UPDATE 3: MrTomTomHD
    I think it's done. I'd appreciate if you test it, and tell if it has everything you asked for.
    <Edit by Moderator: Redacted mediafire url>

    I'll upload this to BukkitDev if the plugin works fine, I haven't had time to test everything.

    By the way, I removed right-click-for-chunk-info function in the last version. Yours still has it, since you requested it, but the one I'm going to upload to BukkitDev won't, I don't think it's something that everyone wants.

    EDIT: Completely forgot to tell you the commands and permissions. cp is alias of chunkprotection, they both work.
    * /cp claim - Claims the chunk you're in, as long as: you have the correct permission, the chunk is not claimed, and you haven't exceeded the limit of claimed chunks. - permission: cp.claim
    * /cp unclaim - Unclaims the chunk you're in, as long as: you have the correct permission, the chunk is claimed, and you are the owner of that chunk. - permission: cp.unclaim
    * /cp unclaimall - Unclaims all of your chunks, as long as: you have the correct permission, and you have more than 0 claimed chunks. - permission: cp.unclaimall
    * /cp trust <player> - Adds the target to the list of trusted players, as long as: you have the correct permission, the chunk is claimed, you are the owner of that chunk, and the target is not already trusted. - permission: cp.trust
    * /cp untrust <player> - Removes the target from the list of trusted players, as long as: you have the correct permission, the chunk is claimed, you are the owner of that chunk, and the target is trusted. - permission: cp.untrust

    That should be it. Tell me if I forgot something.
     
    Last edited by a moderator: Nov 5, 2016
    MrTomTomHD likes this.
  19. Offline

    MrTomTomHD

    Assist
    [quote uid=90859549 name="Assist" post=1856489]
    2. MrTomTomHD

    Here's some screenshots.

    http://imgur.com/uefu7pU,2nrOLu2,ywNp8zM,ZbrWpIw,D25LWcs,PIgQXMP#0

    It's not done yet, but it's working. I'll have to do some polishing, and add a couple more things, but it should be done by sunday, at least.

    Edit: Don't worry about the messages, I'll add a config for them later.

    UPDATE: MrTomTomHD
    Since the last update, I've added
    * /cp trust <player> - allows the target to interact with blocks and objects in the chunk the command sender is in. works even if target is not online
    * /cp untrust <player> - same thing as ^, but a nice versa.
    * /cp unclaimall - unclaims all of the chunks the command sender owns (if any)
    * chunkprotection.claim.[amount] - maximum amount of chunks a player can own. That's a permission btw.
    * config file for all of the possible messages
    * right clicking a non-objectish block with your hand displays the chunk info

    I feel like I'm forgetting something.. But anyways, unfortunately I can't work on this today, but it will definitely be done by tomorrow.


    UPDATE 2: MrTomTomHD
    Well it seems like Minecraft login and server sessions are down, I was just about to finish the plugin. I can still give the download link if you want, but I can't assure you that it's fully done, I might've forgotten something.

    UPDATE 3: MrTomTomHD
    I think it's done. I'd appreciate if you test it, and tell if it has everything you asked for.
    <Edit by Moderator: Redacted mediafire url>

    I'll upload this to BukkitDev if the plugin works fine, I haven't had time to test everything.

    By the way, I removed right-click-for-chunk-info function in the last version. Yours still has it, since you requested it, but the one I'm going to upload to BukkitDev won't, I don't think it's something that everyone wants.

    EDIT: Completely forgot to tell you the commands and permissions. cp is alias of chunkprotection, they both work.
    * /cp claim - Claims the chunk you're in, as long as: you have the correct permission, the chunk is not claimed, and you haven't exceeded the limit of claimed chunks. - permission: cp.claim
    * /cp unclaim - Unclaims the chunk you're in, as long as: you have the correct permission, the chunk is claimed, and you are the owner of that chunk. - permission: cp.unclaim
    * /cp unclaimall - Unclaims all of your chunks, as long as: you have the correct permission, and you have more than 0 claimed chunks. - permission: cp.unclaimall
    * /cp trust <player> - Adds the target to the list of trusted players, as long as: you have the correct permission, the chunk is claimed, you are the owner of that chunk, and the target is not already trusted. - permission: cp.trust
    * /cp untrust <player> - Removes the target from the list of trusted players, as long as: you have the correct permission, the chunk is claimed, you are the owner of that chunk, and the target is trusted. - permission: cp.untrust

    That should be it. Tell me if I forgot something.[/quote]

    Hey, sorry i went inactive at the time and didnt get to use the plugin until now.

    I have added it to my build server and gotten this error whenever /cp claim is done.


    Show Spoiler
    17.12 23:30:41 [Server] INFO ... 13 more
    17.12 23:30:41 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit-dev-2959.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
    17.12 23:30:41 [Server] INFO at main.java.me.avastprods.chunkprotection.CommandManager.onCommand(CommandManager.java:55) ~[?:?]
    17.12 23:30:41 [Server] INFO at main.java.me.avastprods.chunkprotection.CommandManager.colorize(CommandManager.java:173) ~[?:?]
    17.12 23:30:41 [Server] INFO Caused by: java.lang.NullPointerException
    17.12 23:30:41 [Server] INFO at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit-dev-2959.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
    17.12 23:30:41 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit-dev-2959.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
    17.12 23:30:41 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit-dev-2959.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
    17.12 23:30:41 [Server] INFO at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [craftbukkit-dev-2959.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
    17.12 23:30:41 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:655) [craftbukkit-dev-2959.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
    17.12 23:30:41 [Server] INFO at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craftbukkit-dev-2959.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
    17.12 23:30:41 [Server] INFO at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146) [craftbukkit-dev-2959.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
    17.12 23:30:41 [Server] INFO at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat.java:47) [craftbukkit-dev-2959.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
    17.12 23:30:41 [Server] INFO at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java:28) [craftbukkit-dev-2959.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
    17.12 23:30:41 [Server] INFO at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:811) [craftbukkit-dev-2959.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
    17.12 23:30:41 [Server] INFO at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerConnection.java:929) [craftbukkit-dev-2959.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
    17.12 23:30:41 [Server] INFO at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:542) ~[craftbukkit-dev-2959.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
    17.12 23:30:41 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:196) ~[craftbukkit-dev-2959.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
    17.12 23:30:41 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit-dev-2959.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
    17.12 23:30:41 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'cp' in plugin ChunkProtection v1.3
    17.12 23:30:41 [Server] ERROR null



    And also can you change chunk position to actual cordinates of the block like F3
     
    Last edited by a moderator: Nov 5, 2016
  20. Offline

    Assist

    MrTomTomHD
    I deleted the project because I haven't heard from you since I finished it. I can try to decompile the jar, and see if I can get it to work.

    Anyways, that looks like a 1.7 problem, the error is referring to one of Minecraft's server classes, not mine. Also, what do you mean with "actual coordinates"? I just made it send the chunk position, do you want to send them the block position instead?

    Edit: nevermind about the decompiling, I was smart enough to post the source to GitHub.
     
  21. Offline

    Haduke

    Not trying to barge in on this request, but this is very similar to what I am looking for in a plugin as well. In the config file, are you making it where a player can only claim a predefined area within the server? Say for example a 128x128 block radius that includes down to the bedrock layer and to the highest build limit?

    I made a thread on here just a few minutes ago called 'Auto Lots'. I am quite sure that our two requests are VERY similar. I agree with MrTomTomHD that this would be an awesome plugin. I believe the only difference between his request and my own is that with his the player claims the area. In my request, the areas/lots are already set up and the player just choses which one they want.

    Either way, I fully support this idea and hope that something like this can be developed soon.
     
  22. Offline

    MrTomTomHD

    Assist, yes block position, and im sorry i went in-active, i am back to Minecraft, i will 100% test this plugin and you can post it on dev, i promise you, everyone wants a plugin like this, and thanks once again :)

    @Hadke It is chunk size, so 16x16 all the way from max height to bedrock.
     
  23. Offline

    Assist

    MrTomTomHD
    I'll work on it this weekend.

    Haduke
    Your request sounds alot like PlotMe.
     
  24. Offline

    timtower Moderator Moderator

    Guess why the original PlotMe dev responded on it :p
     
  25. Offline

    Haduke

    Is PlotMe still an active plugin? Seems like I may have tried it once before and couldn't get it to work. I will check into it though.
     
  26. Offline

    timtower Moderator Moderator

    Plotme is active, and working as far as I know

    Like you told on your own thread: http://forums.bukkit.org/threads/auto-lots-worldedit-worldguard.207672/
    But you aren't the OP of this thread. Please keep the discussion on your own thread

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
  27. Offline

    MrTomTomHD

  28. Offline

    MrTomTomHD

    Nearly done? :)
     
  29. Offline

    Scruffy Puppy

    While this might be late...Factions does a lot of the same things.
     

Share This Page