GithubHelp home page GithubHelp logo

xsavior-of-god / armorstand-limiter Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 235 KB

Problems with tps? Is it ArmorStand's fault? Use ArmorStandLimiter to prevent your server from crash

License: MIT License

Java 100.00%
bukkit bukkit-plugin java maven minecraft plugins plugins-minecraft spigotmc spigotmc-plugin

armorstand-limiter's Introduction

📜About me

👩‍💻Full Stack Developer

fanatic of 🕸Web programming, Java and more...


💻Some Tech Things I've Used In My Life...

MariaDB MicrosoftSQLServer MongoDB MySQL Redis SQLite Bootstrap Express.js jQuery NPM Angular NodeJS Nuxtjs Vue.js Android Studio CodePen Eclipse Notepad++ Markdown IntelliJ IDEA PhpStorm WebStorm Visual Studio Code Visual Studio C C++ C# PHP HTML5 CSS3 JavaScript TypeScript Java Kotlin Lua Perl Python GoLand


🏆Github Profile Trophy

github profile trophies


🔗Here are some of my projects

armorstand-limiter's People

Contributors

eliotest98 avatar xsavior-of-god avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

blockythedev

armorstand-limiter's Issues

ArmorStand water move enhancement

If you're using papermc, you can accomplish preventing armorstands from moving in water quite easily without disabling gravity:

    @EventHandler
    public void onEntityMove(EntityMoveEvent event) {
        if (event.getEntity() instanceof ArmorStand armorstand) {
            if (armorstand.isInWater()) {
                event.setCancelled(true);
            }
        }
    }

I don't have enough time to make a pull request, but since you're using spigot-api, I'd recommend using reflection to check if the papermc event exists.

DisableIfHasHelmet not working bug

I'm using 1.18.2 papermc and the current comparison to determine if armorstands are wearing a helmet doesn't work. I recommend changing it to armorstand.getEquipment().getHelmet().getType() != Material.AIR for later versions of mc.

Error - Could not pass event onArmorStandRemove to ArmorStand-Limiter v1.6

  • Paper 1.19.3
  • ArmorStand-Limiter v1.6
  • ModelEngine R3.1.6
[10:08:44 ERROR]: Could not pass event onArmorStandRemove to ArmorStand-Limiter v1.6
java.lang.NoSuchMethodError: 'com.ticxo.modelengine.api.manager.ModelManager com.ticxo.modelengine.api.ModelEngineAPI.getModelManager()'
        at com.xSavior_of_God.ArmorStandLimiter.externals.ModelEngine.onArmorStandRemove(ModelEngine.java:19) ~[ArmorStand-Limiter.v1.6.jar:?]
        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor1295.execute(Unknown Source) ~[?:?]
        at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:git-Paper-448]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.19.3.jar:git-Paper-448]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[paper-1.19.3.jar:git-Paper-448]
        at com.xSavior_of_God.ArmorStandLimiter.Utilis$1.run(Utilis.java:80) ~[ArmorStand-Limiter.v1.6.jar:?]
        at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.3.jar:git-Paper-448]
        at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.19.3.jar:git-Paper-448]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1473) ~[paper-1.19.3.jar:git-Paper-448]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[paper-1.19.3.jar:git-Paper-448]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1397) ~[paper-1.19.3.jar:git-Paper-448]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1173) ~[paper-1.19.3.jar:git-Paper-448]
        at net.minecraft.server.MinecraftServer.lambda$spin

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.