Giter VIP home page Giter VIP logo

cjburkey01 / claimchunk Goto Github PK

View Code? Open in Web Editor NEW
75.0 6.0 19.0 9.42 MB

Spigot plugin built for Minecraft 1.17+ allowing the claiming and protection of players' chunks. Old versions available for Minecraft 1.6+ (See Readme!)

Home Page: https://www.spigotmc.org/resources/claimchunk.44458/

License: MIT License

Java 100.00%
minecraft minecraft-server spigot spigot-plugin bukkit bukkit-plugin bukkit-server spigot-server chunk claim

claimchunk's People

Contributors

18patz avatar alexff000 avatar cjburkey01 avatar deathsgun avatar dependabot[bot] avatar drachionix avatar geolykt avatar goldmensch avatar justdoom avatar t0biii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

claimchunk's Issues

Faction-like?

This is about the claim plugin version 6.
For the first I would love if this plugin had a command named /gr where you could add players to your group, everyone you have added to that group can edit your chunks. And when you leaves a chunk i would like if it says forexample "Your left %playername% territorium"
And it would be cool if you also could edit custom colors and have the texts display in Action bar and title and chat. This plugin should be able to if you had a scorebord plugin it could display how many claims you own and how many players is in your group

chunk unclaim bug

`[18:48:13 INFO]: uisufian issued server command: /chunk unclaim
[18:48:13 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'chunk' in plugin ClaimChunk v0.0.5
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[server.jar:git-Spigot-596221b-9a1fc1e]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[server.jar:git-Spigot-596221b-9a1fc1e]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:641) ~[server.jar:git-Spigot-596221b-9a1fc1e]
at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1385) [server.jar:git-Spigot-596221b-9a1fc1e]
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1220) [server.jar:git-Spigot-596221b-9a1fc1e]
at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [server.jar:git-Spigot-596221b-9a1fc1e]
at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [server.jar:git-Spigot-596221b-9a1fc1e]
at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-596221b-9a1fc1e]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_131]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_131]
at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [server.jar:git-Spigot-596221b-9a1fc1e]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:747) [server.jar:git-Spigot-596221b-9a1fc1e]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:405) [server.jar:git-Spigot-596221b-9a1fc1e]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:678) [server.jar:git-Spigot-596221b-9a1fc1e]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:576) [server.jar:git-Spigot-596221b-9a1fc1e]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]
Caused by: java.lang.IndexOutOfBoundsException: No group 2
at java.util.regex.Matcher.start(Unknown Source) ~[?:1.8.0_131]
at java.util.regex.Matcher.appendReplacement(Unknown Source) ~[?:1.8.0_131]
at java.util.regex.Matcher.replaceAll(Unknown Source) ~[?:1.8.0_131]
at java.lang.String.replaceAll(Unknown Source) ~[?:1.8.0_131]
at com.cjburkey.claimchunk.cmd.MainHandler.unclaimChunk(MainHandler.java:81) ~[?:?]
at com.cjburkey.claimchunk.cmds.CmdUnclaim.onCall(CmdUnclaim.java:31) ~[?:?]
at com.cjburkey.claimchunk.cmd.CommandHandler.runCommands(CommandHandler.java:79) ~[?:?]
at com.cjburkey.claimchunk.cmd.CommandHandler.onCommand(CommandHandler.java:48) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[server.jar:git-Spigot-596221b-9a1fc1e]
... 15 more

'

WorldGuard Support

Add WorldGuard support, we can't claim chunk with min 1 block of an worldguard region in, and whitelist and blacklist regions, for example, i CAN'T claim in region "City" but i CAN in region "Jungle"

BUG

If you destroy a block in a chunk you dont own so will the "You cannot edit this chunk" stay if you go in and out of the claimed chunk

Per-Rank Maximum Claims

Allow permissions such as claimchunk.claim.<NUMBER> to override the default limit in the config. For example, if the ranks.json has these ranks:

[
  {
    "name": "boss",
    "claims": 100
  },
  {
    "name": "lame",
    "claims": 10
  }
]

and a player is granted the claimchunk.claim.boss permission, they will be able to claim 100 chunks. Likewise, a player with claimchunk.claim.lame can only claim 10 chunks.

Note: This would be incompatible with standard Bukkit permissions, so a permissions plugin would be required.

Block TNT

Prevent explosions in claimed chunks(configurable)

Claim message keep comming up

If you interact with another plays claimed chunk and then walk in and out and have claim messages to display in action bar to true then if you walk in and out of another player claimed then the message that shows: "You cannot edit this chunk" keep coming appearing

Chunk limit

Limit on number of chunks that can be claimed by a single player.

Op Override

Give ops the power to edit or claim already claimed chunks at any time.

Automatic Chunk Claiming

After a certain amount of valuable blocks are placed in a chunk. Unclaim if removed, and do not allow unclaiming by user to prevent free money.

Messages to Owner

Send message to owner when someone enters or leaves their chunk. Toggle-able by config.

Databases

The following improvements would be good:

  1. JSON instead of self parsing use Gson
  2. SQL support

[Question] How to undone /chunk access <player> ?

Hello,

After use of the command /chunk access <player>,
...how to deny this player ? There is no /chunk deny <player> or somthing like that?

Thank in advance.

Edit : And how to see the list of access players?
/chunk access alone could print your "friend" list.

A Few Ideas (List Command, Max Claim Permission, etc) & Some Bugs (Unclaiming & Worldguard)

I hope this is the right place to write this, hahah. This plugin is awesome, but I have a few suggestions:

  • Add a "list" command, where players can view a list of all chunks they own and coordinates as well.
  • Add an "info" command to show information about the chunk the player is currently in.
  • Add the ability to set the max amounts of chunks players can claim via permissions (e.g.
    claimchunk.maxclaims.[number])
  • Add a "package" permission that enables all basic features for players, such as claiming, unclaiming, etc. Maybe call it claimchunk.use or claimchunk.player?
  • Show the amount of money that you claimed the chunk for in the message displayed after claiming a chunk.
  • Maybe reduce the number of messages that appear in console upon server start? Or add a "debug" option in the config that will make all these messages appear/disappear? I feel like it's a lot at the moment. I dunno.

And here's two bugs I noticed:

  • When unclaiming the first chunk, the player is still refunded the "award" amount for unclaiming, even if the "first chunk free" option was enabled. This could give the player free money if they claim and unclaim repeatedly.
  • The WorldGuard integration doesn't seem to be working? On startup it says "[ClaimChunk] WorldGuard support not enabled because the WorldGuard plugin was not found.", but I am 100% sure I am using the WorldGuard plugin on my server. Also the "chunk-claim" flag doesn't seem to show up in the flag list. Perhaps it's because I'm using an older version? I am running 6.2.1 (on a 1.12 server).

These are just a few things I thought would be cool when testing out the plugin today. Other than that, it's wonderful!

Command to List Claims in World

Add a command like /claimchunk listchunks to list all of (in page format) a player's claims in the current world. Possibly allow admins to use /claimchunk listchunks [PLAYER] to view other players' claims.

Block issue

If u set a block outside the claimed chunk another player own and sets a block on that block outside the chunk you will be able to place that block

Custom naming

Allow players to define a custom name for their territories.

Error at Unclaim

Hey, I really love your plugin, it's perfect for my server.
But i am having a bit of trouble doing the unclaim. I am getting this error.

https://pastebin.com/sazpWQyb

Please fix it, I really want to use your plugin.

(Suggestion) '/chunk name' names (grouped) chunks individually

Hello again,

This is something I'd really love, if possible.

So, for example, I have my Main Base chunks, 10 all linked together named VulgarMainBase. Then, I have another 2 linked, claimed chunks some 500 blocks away at an XP farm, and I'd like to name it VulgarXPFarm, but of course, the name carries from VulgarMainBase. I'd like them to be named separately.

If this is possible, this would make me so happy, even though I mean nothing to you πŸ˜›

Have a great day/evening πŸ˜„

MCStats

Use MCStats to track usage of the plugin to guage popularity πŸ‘

http://mcstats.org

(Add config option to disable it, of course. Privacy is important)

Alias Commands

Add some optional alias commands like /claim or /claimchunk to clear up ambiguity with other plugins as /chunk isn’t too unique of a name.

(Suggestion) Add disabled worlds option

My small server started growing and I've got Creative & Minigames worlds now. I'd like to be able to block claiming in these worlds if possible, just a simple config would be cool, like
"disabled-worlds:

  • Creative
  • Tutorial"
    etc, or a command would be even cooler, something like /chunk disable {world}

/chunk access <player> dont works in spigot version 1.14

/chunk access doesn't work in spigot version 1.14
Minecraft version: Spigot 1.14
Plugin version: Latest 0.0.8

If u use /chunk access the message will successfully display but the trusted player won't be able to interact with anything

Set More Specific Permissions

Add more options for what players may do on claimed chunks. For example...
chests contents: 0 = no interaction, 1 = view, 2 = add, 3 = remove
other item inventories: 0 = no interaction, 1 = view, 2 = add, 3 = remove
Minecarts/boats that the chunk owner placed: 0 = no interaction, 1= Mount/dismount, 2 = move
operate redstone components like switches, levers, buttons, tripwires, etc: true, false
Open/close doors: true, false
PvP: true, false
place projectiles into item inventories(to prevent using dispensers for PvP damage): true, false
place tnt blocks: true, false
place tnt into item inventories(to prevent using dispensers for griefing): true, false

Also allow ops to set global defaults for what protections are active for newly claimed chunks. Unprivileged users should then be given the option to set their own personal defaults for all future claims. Furthermore, permissions should be editable on individual chunks after claiming, or optionally update all claimed chunks. Ops should be able to set which permissions are editable by unprivileged users, so certain permissions are always set to the global default.

Unclaim All

Add ability to unclaim all of one's chunks.

Admin Override

#33 had an issue which is the same as mine, but I'm on 0.0.8. Even if I'm opped, and I gave every permission to my Admin group (which I'm in), I cannot unclaim other peoples chunks as it says I do not own this chunk.

Currently, I have to shut down the server, remove it from the json file, and start the server again.

Protect unclaimed

Can you add a feature that protects the unclaimed territory. So, the unclaimed chunks are protected from breaking blocks, and people can break blocks there after claiming a chunk.

Just some changes

Can you change that when you are leaving a claim it could display "You left %players" territorium" instead of "Entering unclaimed territorium"?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.