Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin works in 1.8 but not in 1.18 #75

Open
nay-cat opened this issue Aug 30, 2022 · 8 comments
Open

Plugin works in 1.8 but not in 1.18 #75

nay-cat opened this issue Aug 30, 2022 · 8 comments

Comments

@nay-cat
Copy link

nay-cat commented Aug 30, 2022

On a server with ViaVersion, in 1.8 the plugin works correctly, but in 1.18 it does not work, idk if it's a bug or I'm doing something wrong

Specifically, in 1.8 when clicking the events work, it does not allow objects to be moved.

In 1.18 clicking does not work the events and lets steal objects

Thanks in advance

@LichtHund
Copy link
Member

I'll need a bit more information than that. Some code if possible.

@nay-cat
Copy link
Author

nay-cat commented Aug 30, 2022

literally the documentation code

gui = Gui.gui()
                .title(Component.text(Objects.requireNonNull(getConfig().getString("Inventory.name"))))
                .rows(1)
                .create();
// yes i know setName is deprecated        
GuiItem basic = ItemBuilder.from(Material.BOOK).setName("name").asGuiItem(event -> {
                Player player = (Player) event.getWhoClicked();
});

gui.disableAllInteractions();
gui.setItem(2, basic);

In both versions the inventory opens, but in 1.18 events don't work and items can be stolen

@iGabyTM
Copy link
Member

iGabyTM commented Aug 30, 2022

Can you try without any other plugins? I use the lib on 1.18 and works just fine

@LichtHund
Copy link
Member

Also, one more thing, what version is the server? 1.8 or 1.18? Because it sounds like the issue is connecting from 1.18 on a 1.8 server? Is that correct?
Just asking so I can test it.

@nay-cat
Copy link
Author

nay-cat commented Aug 30, 2022

Also, one more thing, what version is the server? 1.8 or 1.18? Because it sounds like the issue is connecting from 1.18 on a 1.8 server? Is that correct?
Just asking so I can test it.

The server is in 1.18, we use viaversion, the strange thing is that a user who joins in 1.8 works well with the inventory and a user who joins in 1.18 does not work well, the plugin is made with spigot 1.18

@iGabyTM
Copy link
Member

iGabyTM commented Aug 30, 2022

You mean you use ViaBackwards AND ViaVersion.

@LichtHund
Copy link
Member

I'll test it.

@nay-cat
Copy link
Author

nay-cat commented Aug 30, 2022

I'll test it.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants