Coder Social home page Coder Social logo

qtownybiomeblacklist's Introduction

Modrinth Download Link Discord Invite GitHub Source Code PayPal Donation Link Supported Versions: 1.20.2


A TownyAdvanced addon where you can blacklist claiming in specific biomes


Tested Versions

Minecraft: v1.20.2

Towny: v0.100.0.0-v0.100.0.4

Servers: Paper, Pufferfish, Purpur or any other stable paper fork.

Spigot or modded hybrids will most *likely* work, but will recieve no support. If you're still using spigot, it is HIGHLY recommend you upgrade to Paper

Config

The full biome list can be found here.

#######################################################################
# +-----------------------------------------------------------------+ #
# |                   qTownyBiomeBlacklist Config                   | #
# |   Source:   https://github.com/QarthO/qTownyBiomeBlacklist      | #
# |   Download: https://modrinth.com/plugin/qTownyBiomeBlacklist/   | #
# |   Donate:   https://paypal.me/qartho                            | #
# +-----------------------------------------------------------------+ #
#######################################################################

# The message that's sent to the player after attempting to claim in a blacklisted biome
# - Uses towny to send the message, so its already has the [Towny] prefix
deny-message: "You're not allowed to claim land in <biome>"

# Biome list can be found here: https://jd.papermc.io/paper/1.20/org/bukkit/block/Biome.html
# This example prevents claiming in any ocean biome
blacklisted-biomes:
  - COLD_OCEAN
  - DEEP_COLD_OCEAN
  - DEEP_FROZEN_OCEAN
  - DEEP_LUKEWARM_OCEAN
  - DEEP_OCEAN
  - FROZEN_OCEAN
  - LUKEWARM_OCEAN
  - OCEAN
  - WARM_OCEAN

This plugin uses bStats. You can opt-out in the bStats config

bStats qSpleef

qtownybiomeblacklist's People

Contributors

qartho avatar cocolennon avatar

Watchers

 avatar

Forkers

cocolennon

qtownybiomeblacklist's Issues

The plugin will look up the wrong chunk if the server does not use the default townblock size of 16

// gets the chunk object of the TownBlock
Coord coord = townBlock.getCoord();
int x = coord.getX();
int z = coord.getZ();
Chunk chunk = world.getChunkAt(x, z);

You may want to add a warning on startup when TownySettings.getTownBlockSize() is not 16.

When it is 16 the TownBlocks and Chunks all line up.

If you want to add support for non-16 sized townblocks you can get the chunks via TownBlock.getWorldCoord().getChunks() which will get you a Collection<CompletableFuture>.

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.