Giter VIP home page Giter VIP logo

claimchunk's Introduction

ClaimChunk Logo ClaimChunk Title

Plugin Version Maven Central Version Minecraft Version Java Version Servers Using Claimchunk Players Using Claimchunk

Join us on our Discord server for bug reports, support, and general chatting!

Info

Spigot plugin for 1.20+ allowing the claiming of chunks.

The destiny of chunks is to unite not to divide
Let's make the world ours.

Usage and more information can be found on the wiki.

  • 1.20-1.20.6+ | The latest version works seamlessly (excluding bugs, of course).
  • 1.17 - 1.20 | The latest known working version is 0.0.23-RC8.
    • Newer versions of the plugin will require Java 17, but may still work.
  • 1.13 - 1.16.5 | The latest working version is 0.0.22.
    • Note: If you disable titles, 0.0.23 might work on version older than 1.17. If you experience issues, however, they may be more difficult to address.
  • Pre-1.13 | The latest working version is 0.0.20
    • Newer features of Spigot are used in builds 0.0.21 and later that make it incompatible with older versions.
    • 1.9 - 1.12 | Should work without any trouble.
    • 1.6 - 1.8 | Works when useTitlesInsteadOfChat is set to false under the titles section of the config.

If you have issues running an old version of the plugin on a Minecraft version within the above supported ranges, you may make an issue, and I should be able to help, but I won't be bringing newer features over. They officially have "minor bug support" status. Version 0.0.23 will be supported for slightly longer though, as this transition period may get funky.

For even more information, the SpigotMC page can be found here.

Download

Downloads are available in the releases section and separately on Modrinth.

The latest compiled version of this repository can be downloaded via this link.

Optional Features:

News

This section is being written on the 600th commit! Happy 600 everyone :) May our years going forward be full of joy!

We've had ClaimChunk among us for 2473 days (as of today), thanks to the effort of 9 other contributors supporting me along the way!

If you'd like to help out, open a pull request or submit a GitHub issue with a feature request and/or bugs you've come across!

Guess what! I'm sorta back :) Life has been crazy for the last couple of years, but here I am :) I hope to continue working on this plugin and making existing features more stable (and maybe a small thing here or there)!

Please do join the Discord server if you have any trouble with anything or want to know what I'm currently doing. I'll be a little more online, I hope!

Plugin Integrations

If you have developed an addon for ClaimChunk or for another plugin that integrates with ClaimChunk, or have added ClaimChunk support to your plugin, let me know, and I'll put your addon/plugin here. You can reach me at [email protected] or through the Discord server.

Here are some plugins that either have addons for or integrations with ClaimChunk:

Addons that aren't actively maintained but could be useful:

Now on Maven Central! To make a plugin, use one of these snippets:

Maven:

<dependency>
    <groupId>com.cjburkey.claimchunk</groupId>
    <artifactId>claimchunk</artifactId>
    <version>0.0.25-FIX3</version>
</dependency>

Gradle (Groovy):

implementation 'com.cjburkey.claimchunk:claimchunk:0.0.25-FIX3'

Gradle (Kotlin):

implementation("com.cjburkey.claimchunk:claimchunk:0.0.25-FIX3")

Building

Automatic Build Version Info

If you want to obtain a version of the plugin that isn't available yet (like a snapshot), you can do so by asking on the Discord or building it yourself. Here's how to build it yourself:

First, you'll need to clone the repo either using the Git command:
git clone [email protected]:cjburkey01/ClaimChunk.git
or downloading the repository source using the button above that says "Clone or download".

Once you have obtained the repo, inside the local repository, you'll just need to execute this Gradle Wrapper command:

  • ./gradlew build for Unix/Mac
  • gradlew build for Windows

Your built jar file can be found at:
<REPO>/OUT/claimchunk-VERSION.jar

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

claimchunk's Issues

Messages to Owner

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

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.

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"

Databases

The following improvements would be good:

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

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!

Op Override

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

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.

(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}

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"?

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

'

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.

Block TNT

Prevent explosions in claimed chunks(configurable)

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

Chunk limit

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

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.

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) '/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 πŸ˜„

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

Unclaim All

Add ability to unclaim all of one's chunks.

/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

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

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.

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.

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.

[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.

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

Custom naming

Allow players to define a custom name for their territories.

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)

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.