Coder Social home page Coder Social logo

builders-utilities's Introduction


Builders-Utilities was a requested plugin by Alex_deGrote, who won the plugin giveaway at my panel from McBcon. This plugin is a collection of a lot of tiny features that help with building.

Links

Building

Gradle is the recommended way to build the project. Use ./gradlew build in the main project directory to build the project.

Contributing

See here

Suggestions

Suggestions are welcome! We have a separate issue form for suggestions, which can be found here.

builders-utilities's People

Contributors

ayan4m1 avatar boaler avatar brennian avatar jewome62 avatar notmyfault avatar renovate-bot avatar renovate[bot] avatar tehbrian avatar thomasmny avatar ydal251 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

Watchers

 avatar  avatar  avatar

builders-utilities's Issues

Bug: Inventory SPAMS

This error spams on console when you drag and drop from any inventory. I am using PaperSpigot 1.12.2.

[08:51:24 WARN]: [] java.lang.NullPointerException
[08:51:24 WARN]: [] at com.buildersrefuge.utilities.listeners.ToggleInventoryListener.onInventoryClick(ToggleInventoryListener.java:31)
[08:51:24 WARN]: [] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor121.execute(Unknown Source)
[08:51:24 WARN]: [] at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:70)
[08:51:24 WARN]: [] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78)
[08:51:24 WARN]: [] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[08:51:24 WARN]: [] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:527)
[08:51:24 WARN]: [] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:512)
[08:51:24 WARN]: [] at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1983)
[08:51:24 WARN]: [] at net.minecraft.server.v1_12_R1.PacketPlayInWindowClick.a(SourceFile:33)
[08:51:24 WARN]: [] at net.minecraft.server.v1_12_R1.PacketPlayInWindowClick.a(SourceFile:10)
[08:51:24 WARN]: [] at net.minecraft.server.v1_12_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14)
[08:51:24 WARN]: [] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[08:51:24 WARN]: [] at java.util.concurrent.FutureTask.run(Unknown Source)
[08:51:24 WARN]: [] at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46)
[08:51:24 WARN]: [] at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:849)
[08:51:24 WARN]: [] at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423)
[08:51:24 WARN]: [] at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:773)
[08:51:24 WARN]: [] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:665)
[08:51:24 WARN]: [] at java.lang.Thread.run(Unknown Source)

Language Support

BuildersUtilities Feature Suggestion:

Add multiple language support.

How should it be implemented?

a message.yml for all the shown text

Additional context

Checklist:

  • I made sure there are no duplicates of my suggestion (Use search)
  • I made sure my suggestion is useful for the majority of Builders-Utilities users

Block Fade

What feature do you want to see added?

A setting for disabling block fading

Are there any alternatives?

Integrate block fade into block physics setting but thats awful because you lose your overview of what settings handle.

Anything else?

No response

Add PAPI support

What feature do you want to see added?

Hello !

Would it be possible to add PAPI support to have the information in true and false when some functions are activated or deactivated like NoClip, NightVision, AdvancedFly?

Are there any alternatives?

No alternative exists.

Anything else?

I would like this addition, because on my server I make a settings menu where players can set a lot of toggle options, and it would be handy if Builder-Utilities would add this feature!

Ty for the plugin :)

Typo in utilities menu

Server Implementation

Paper

Server Version

1.17.1

Describe the bug

In the utilities menu (/bu), the glazed terracotta hover tooltip misspells the word "empty" as "emtpy".

To Reproduce

  1. Do /bu
  2. Hover over the glazed terracotta

Expected behaviour

"Emtpy" should be spelled "empty"

Screenshots / Videos

Screen Shot 2021-10-22 at 7 12 03 PM

Error log (if applicable)

No response

Builders-Utilities Version

Builders-Utilities version 2.1.1-66

Checklist

Anything else?

No response

Error due to Inventories

Due to: When in another plugin, we have an inventory opened, and we click out of the window, it throws an exception.

How to Fix: On ToggleInventoryListener.class, before line 31, add if(e.getClickedInventory() == null) return;, because if we click out of the window, the inventory is null.

Result of Fix: Due to this fix, if the inventory clicked is null, it returns.

Exeption:
java.lang.NullPointerException [02:18:13 WARN]: at com.buildersrefuge.utilities.listeners.ToggleInventoryListener.onInventoryClick(ToggleInventoryListener.java:31) [02:18:13 WARN]: at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source) [02:18:13 WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [02:18:13 WARN]: at java.lang.reflect.Method.invoke(Unknown Source) [02:18:13 WARN]: at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) [02:18:13 WARN]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [02:18:13 WARN]: at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) [02:18:13 WARN]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) [02:18:13 WARN]: at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1889) [02:18:13 WARN]: at net.minecraft.server.v1_12_R1.PacketPlayInWindowClick.a(SourceFile:33) [02:18:13 WARN]: at net.minecraft.server.v1_12_R1.PacketPlayInWindowClick.a(SourceFile:10) [02:18:13 WARN]: at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [02:18:13 WARN]: at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [02:18:13 WARN]: at java.util.concurrent.FutureTask.run(Unknown Source) [02:18:13 WARN]: at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [02:18:13 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [02:18:13 WARN]: at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [02:18:13 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [02:18:13 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [02:18:13 WARN]: at java.lang.Thread.run(Unknown Source)

Breaks redstone repeaters even with the Redstone config option disabled

Server Implementation

Paper

Server Version

1.17.1

Describe the bug

This plugin breaks redstone even tho its disabled in the config, removing the plugin it works again.

To Reproduce

  1. Install Builders-Utilities
  2. Try and power a redstone repeater
  3. It does not work

Expected behaviour

For redstone to work

Screenshots / Videos

No response

Error log (if applicable)

No response

Builders-Utilities Version

2.0.0-51

Checklist

Anything else?

I havnet tried that latest build as I need to get redstone working, apparently its been broken a year on my creative!

Incorrect permission checked for trapdoor functionality in the utilities menu

Server Implementation

Paper

Server Version

1.17.1

Describe the bug

The plugin.yml declares the permission associated with the iron trapdoor toggling functionality as builders.util.trapdoor. The listener checks this permission. However, the utility menu, when deciding whether to show the "No Permission" status, checks an incorrect permission, builders.util.irontrapdoor. This leads to a disparity on whether the utility menu shows that the player has permission and whether the player can use the functionality. Additionally, this prevents the plugin.yml-declared permission default of true from working correctly.

To Reproduce

  1. Grant the player permission for builders.util.trapdoor
  2. Observe in the utilities menu that the plugin still shows that the player has no permission

Expected behaviour

The permission builders.util.trapdoor is checked by the utilities menu

Screenshots / Videos

No response

Error log (if applicable)

No response

Builders-Utilities Version

Builders-Utilities version 2.1.1-66

Checklist

Anything else?

No response

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • Update dependency com.github.cryptomorin:XSeries to v11.2.0.1
  • Update dependency gradle to v8.9

Detected dependencies

github-actions
.github/workflows/build.yml
  • actions/checkout v4
  • gradle/wrapper-validation-action v3
  • benjlevesque/short-sha v3.0
  • actions/setup-java v4
  • HardNorth/github-version-generate v1
  • actions/upload-artifact v4
gradle
gradle.properties
settings.gradle.kts
build.gradle.kts
  • com.diffplug.spotless 6.25.0
  • com.github.johnrengelman.shadow 8.1.1
  • org.ajoberstar.grgit 5.2.2
  • io.papermc.paper:paper-api 1.19.3-R0.1-SNAPSHOT
  • com.mojang:authlib 1.5.25
  • org.bstats:bstats-bukkit 3.0.2
  • org.bstats:bstats-base 3.0.2
  • com.github.cryptomorin:XSeries 11.2.0
  • dev.notmyfault.serverlib:ServerLib 2.3.6
  • io.papermc:paperlib 1.0.8
  • org.apache.logging.log4j:log4j-api 2.23.1
  • com.github.cryptomorin:XSeries 11.2.0
  • org.bstats:bstats-base 3.0.2
  • org.bstats:bstats-bukkit 3.0.2
  • io.papermc:paperlib 1.0.8
  • dev.notmyfault.serverlib:ServerLib 2.3.6
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 8.8

  • Check this box to trigger a request for Renovate to run again on this repository

Strange Behavior of Fences

Server Implementation

Paper

Server Version

1.17.1

Describe the bug

If the fence is destroyed under certain circumstances, the fence will try to connect to a place where there are no blocks.

To Reproduce

I thought it would be quicker to show you than to write, so I've attached a video that reproduces the bug.

Expected behaviour

The fence will only try to connect to the front fence, which will be placed later.

Screenshots / Videos

fenceBug.mp4

Error log (if applicable)

No response

Builders-Utilities Version

Builders-Utilities-2.1.1-64

Checklist

Anything else?

Paper version git-Paper-279 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: 6de48db)

FAWE version 1.17-327;ca15e93

The same bug also seems to occur in 1.16.5 PaperServer

disable-physics causes doors to appear incorrectly

Server Implementation

Spigot

Server Version

1.17.1

Describe the bug

When disable-physics is set to true, all block physics is disabled except for specific items. The list of exclusions does not contain doors, but they emit BlockPhysicsEvents when opened and closed to keep both halves of the door in sync. This plugin is cancelling those events, causing doors to appear half-open and half-closed.

To Reproduce

  1. Place a door on a plot where disable-physics is active
  2. Open the door (right click on it)
  3. Observe a half-open door

Expected behaviour

  1. Place a door on a plot where disable-physics is active
  2. Open the door (right click on it)
  3. Observe a fully opened door

Screenshots / Videos

No response

Error log (if applicable)

No response

Builders-Utilities Version

Builders-Utilities-2.1.1-79.jar

Checklist

Anything else?

No response

Missing commit history

It seems that the commit history after moving from gitlab is missing, is there any chance that this could be restored? I applied the changes that are present in the github version to the one from gitlab. You can find it here if you want to import it. (Unfortuantely I can't open a pull-request for that as the histories are completely different and you would need to force-push to github in order to update the history)

Doing that would enable me to PR in my changes which allows configuring the different messages and cleans up the code a bit.

Players are no-clipped for non-solid blocks

Server Implementation

Paper

Server Version

1.17.1

Describe the bug

Players should ideally only be no-clipped when the block that they're attempting to pass through prevents their passage. However, blocks such as grass, flowers, and other non-solid blocks still engage no-clip.

To Reproduce

  1. turn on no-clip with /nc
  2. collide with a non-solid block such as grass or flowers

Expected behaviour

Non-solid blocks do not engage no-clip.

Screenshots / Videos

https://gfycat.com/goodnaturedunimportantalpineroadguidetigerbeetle

Error log (if applicable)

No response

Builders-Utilities Version

Builders-Utilities version 2.1.1-61

Checklist

Anything else?

No response

Errors console

Server Implementation

Paper

Server Version

1.17.1

Describe the bug

image

To Reproduce

  1. run the server with the plugin on version 1.20.2
  2. open menu for editing banners or reservations
  3. see console

Expected behaviour

empty console

Error log (if applicable)

No response

Builders-Utilities Version

Builders-Utilities-2.1.1-108

Checklist

Anything else?

No response

BUT create an error on login

Server Implementation

Paper

Server Version

1.21

Describe the bug

Every time we log in we get an error in the console and in the log.

To Reproduce

Login an see Console or log

Expected behaviour

There is no error in the log when logging in

Screenshots / Videos

No response

Error log (if applicable)

https://gist.github.com/Leahcimkrob/c98cad78445967f7fb7d846e9f42ac2c

Builders-Utilities Version

[Builders-Utilities-2.1.1-110

Checklist

Anything else?

No response

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

NPE at startup stops plugin from being loaded

Builders-Utilities version:

Builders-Utilities-2.0.0-44.jar

Server build info:

Paper version git-Paper-587 (MC: 1.16.5)

Description of the problem:

Error at startup

Relevant console output, log lines, and/or screenshots:

[Builders-Utilities] Enabling Builders-Utilities v2.0.0-44
Error occurred while enabling Builders-Utilities v2.0.0-44 (Is it up to date?)
java.lang.NoClassDefFoundError: org/apache/logging/log4j/util/ReflectionUtil
        at net.arcaniax.logging.apache.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:42) ~[?:?]
        at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:46) ~[patched_1.16.5.jar:git-Paper-587]
        at net.arcaniax.logging.apache.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29) ~[?:?]
        at net.arcaniax.logging.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358) ~[?:?]
        at net.arcaniax.buildersutilities.utils.CustomConfig.<clinit>(CustomConfig.java:42) ~[?:?]
        at net.arcaniax.buildersutilities.BuildersUtilities.onEnable(BuildersUtilities.java:71) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.5.jar:git-Paper-587]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:380) ~[patched_1.16.5.jar:git-Paper-587]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483) ~[patched_1.16.5.jar:git-Paper-587]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.16.5.jar:git-Paper-587]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.16.5.jar:git-Paper-587]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchCommand(CraftServer.java:810) ~[patched_1.16.5.jar:git-Paper-587]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchServerCommand(CraftServer.java:772) ~[patched_1.16.5.jar:git-Paper-587]
        at net.minecraft.server.v1_16_R3.DedicatedServer.handleCommandQueue(DedicatedServer.java:452) ~[patched_1.16.5.jar:git-Paper-587]
        at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:419) ~[patched_1.16.5.jar:git-Paper-587]
        at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1328) ~[patched_1.16.5.jar:git-Paper-587]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1116) ~[patched_1.16.5.jar:git-Paper-587]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:289) ~[patched_1.16.5.jar:git-Paper-587]
        at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.util.ReflectionUtil
        at java.net.URLClassLoader.findClass(URLClassLoader.java:471) ~[?:?]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:182) ~[patched_1.16.5.jar:git-Paper-587]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:111) ~[patched_1.16.5.jar:git-Paper-587]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
        ... 24 more

AFFIRMATION OF COMPLETION:

  • I included all information required in the sections above
  • I made sure there are no duplicates of this report (Use Search)
  • I made sure I am using an up-to-date version of Builders-Utilities
  • I made sure the bug/error is not caused by any other plugin
  • I didn't read but checked everything above.

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.