Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Version 3.2.1 * Remove potential NPE issues * Version 3.3.0 * Added config option to show or not show particles. * Add Chinese Translation (#63) * Rename zh_CN.json to zh_CN.yml (#64) * Add a clearer message when WBAPI is not found (#65) It is not mandatory to use WorldBorderAPI, so it should be clear for the user that they have a choice besides integrating with it. * Remove `hooked` field (refactor) (#66) Removing the `hooked` field because it was used locally and could be removed as a simple refactoring to shorter and simpler code. * Unify wording of WBAPI-excluded configs (#67) * Unify wording of WBAPI-excluded configs * Add `show-particles` to README * Clarify message for show-particles setting * Implement per-player border type (#69) * Rename PlayerBorder.barrier to show * Move player event handlers to PlayerListener * Remove PlayerBorder * Implement PerPlayerBorderProxy Currently defaulting to Customer (non-wbapi) border * Add BorderTypeCommand * Create BorderType * Add messages to BorderTypeCommand * Prepare PerPlayerBorderProxy for handling edge cases The user may not have a border type set, then we return with the default. The user's border type may be unavailable now for two reasons: 1. Border type has been disabled after a server/plugin restart 2. Border type is obsolete and does not exist anymore (forward compatibility). * Fix message reference at BorderTypeCommand * Use null for missing wbapiBorder It is fine since it is never used * Avoid wbapi "border show" spam on player move * At command, replace args.isEmpty() with size() != 1 To also show help if more parameters are passed than necessary * Small refactor * Fix set-type permission in addon.yml * Update README Co-authored-by: tastybento <[email protected]> * Cleanup documentation (#70) * Remove commented code * Purify config.yml As I see, this is just another place to duplicate our settings, documentation and changes to these. This file is generated if missing. * Cleanup Settings.java This is another place where we duplicated documentation. * Purify README.md * Fix failing test: testIsUseWbapi * Revert "Cleanup Settings.java" This reverts commit f8e931c. * Format Settings.java and add documentation link * Regenerate config.yml * Avoid raw Optional#get * Enum elements should be all caps by convention. * Use isEmpty. Using Collection.size() to test for emptiness works, but using Collection.isEmpty() makes the code more readable and can be more performant. The time complexity of any isEmpty() method implementation should be O(1) whereas some implementations of size() can be O(n). In this case, it's not a big deal, just a code smell. * Map to new variable * 1.18 support for Particle.BARRIER_BLOCK * Translate id.yml via GitLocalize (#71) Co-authored-by: Alunite? <[email protected]> * Translate hu.yml via GitLocalize (#72) Co-authored-by: VerusBungee <[email protected]> * Taiwan translation (#73) * Translate zh-TW.yml via GitLocalize * Update zh-TW.yml Co-authored-by: davgo0103 <[email protected]> Co-authored-by: tastybento <[email protected]> * korean translation (#74) * Translate ko.yml via GitLocalize * Update ko.yml Co-authored-by: chickiyeah <[email protected]> Co-authored-by: tastybento <[email protected]> * Polish translation (#75) * Translate pl.yml via GitLocalize * Update pl.yml Co-authored-by: PICIGIT <[email protected]> Co-authored-by: tastybento <[email protected]> * Switch to use new Bukkit / Paper WorldBorder API (#78) * Switch to use new Bukkit / Paper WorldBorder API * Fix nether vanilla border (#80) Vanilla World Border automatically converts coordinates by dimension multiplayer. So in the nether it is required to counter it with extra processing. Co-authored-by: BuildTools <[email protected]> * disabled enderpearls and chorus fruits + fix (#82) * run show task ; teleport visitors back in boundaries, bypass spectators (#83) * Implement a toggle between border types just by writing border type command. Requested by #87 * Implement new placeholder: %border_type% Requested by #86 * Disable border changing from other worlds. This could lead to a showing up a virtual border where it should not be. * Translate ru.yml via GitLocalize (#93) Co-authored-by: Marmur2020 <[email protected]> * Translate pl.yml via GitLocalize (#92) Co-authored-by: wiktorm12 <[email protected]> * Update French translation (#91) * Translate fr.yml via GitLocalize * Translate fr.yml via GitLocalize Co-authored-by: HipppB <[email protected]> Co-authored-by: organizatsiya <[email protected]> * Translate de.yml via GitLocalize (#89) Co-authored-by: 0x4096 <[email protected]> * Update Spanish translation (#90) * Translate es.yml via GitLocalize * Translate es.yml via GitLocalize Co-authored-by: roy0510 <[email protected]> Co-authored-by: plebexer <[email protected]> * Update to Java 17 * Permission cannot have a - in it. Changed the permission for the type command to "border.type" instead of "border.set-type" because with the hyphen in it, Bukkit always grants the permission for some reason. Addresses #96 * Added test class for type command Had to make some classes non-final so they can be mocked. * Added IslandBorderCommand test class * Add ${argLine} to get jacoco coverage * Fix code smells. * Fix code smell * Fix Jacoco errors * Use default settings in config if player does not have permissions. (#98) Redoes the config.yml as well. Adds test classes. Relates to #97 * Config types (#99) * Use default settings in config if player does not have permissions. Redoes the config.yml as well. Adds test classes. Relates to #97 * Remove unused import. * Adds offset config to enable border to be bigger than protection range #75 Adds test class for ShowBarrier. * Added ShowVirtualWorldBorder test class #75 * Finishes up #97 --------- Co-authored-by: hutu <[email protected]> Co-authored-by: Károly Ozsvárt <[email protected]> Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com> Co-authored-by: Alunite? <[email protected]> Co-authored-by: VerusBungee <[email protected]> Co-authored-by: davgo0103 <[email protected]> Co-authored-by: chickiyeah <[email protected]> Co-authored-by: PICIGIT <[email protected]> Co-authored-by: evlad <[email protected]> Co-authored-by: BuildTools <[email protected]> Co-authored-by: BONNe <[email protected]> Co-authored-by: Marmur2020 <[email protected]> Co-authored-by: wiktorm12 <[email protected]> Co-authored-by: HipppB <[email protected]> Co-authored-by: organizatsiya <[email protected]> Co-authored-by: 0x4096 <[email protected]> Co-authored-by: roy0510 <[email protected]> Co-authored-by: plebexer <[email protected]>
- Loading branch information