ChestShop-authors / ChestShop-3

ChestShop - the chest & sign shop plugin for Minecraft Servers running Bukkit/Spigot/Paper
https://dev.bukkit.org/projects/chestshop
GNU Lesser General Public License v2.1
272 stars 178 forks source link

AuthMe old version #546

Open Sitmobedaf opened 1 year ago

Sitmobedaf commented 1 year ago

What is happening?

https://pastebin.com/raw/UDSZt5Q4

What did you expect to happen?

https://pastebin.com/raw/UDSZt5Q4

Plugin Version

latest

Plugin Config

Config ```yaml [Put the config here] ```

Server Version

1999999999999999

Server Log

Log ``` [Your log here] ```

What other plugins are you running?

https://pastebin.com/raw/UDSZt5Q4

Agreements

Additional context

No response

Phoenix616 commented 1 year ago

Please provide the full log or fill out all the fields properly...

Sitmobedaf commented 1 year ago

It's easier for me to submit a code change request, but it should probably be obvious https://lostpic.tk/images/2023/03/04/ZAKVAT-1.jpg Method registerEvent(new AuthMeChestShopListener()); can be placed in a try-catch block. This is the fastest solution

Phoenix616 commented 1 year ago

Of course you are always welcome to submit a pull request fixing it! :) Imo. the easiest would be if you provided the requested information though ;)

Sitmobedaf commented 1 year ago
    Plugin authMe = getServer().getPluginManager().getPlugin("AuthMe");
    if (authMe != null && authMe.isEnabled()) {
        try {
            registerEvent(new AuthMeChestShopListener());
        }
        catch (ClassNotFoundException e) {
        }
    }