WolverinDEV / BungeeUtil

BungeeUtils [Unmaintained]
25 stars 13 forks source link

AnvilGUI bug #45

Closed SpraxDev closed 6 years ago

SpraxDev commented 7 years ago

My Code:

AnvilGui anvilGUI = new AnvilGui((Player) p);

anvilGUI.setBackgroundItem(ItemBuilder.create(Material.APPLE));
anvilGUI.setOutputItem(ItemBuilder.create(Material.NAME_TAG).name("§2Spieler melden").build());
anvilGUI.setBackgroundMessage("Kommentar");
anvilGUI.setColorPrefix("");

anvilGUI.addListener(new AnvilGuiListener() {
    @Override
    public void onMessageChange(AnvilGui gui, String msg) {
    }

    @Override
    public void onConfirmInput(AnvilGui gui, String msg) {
        p.sendMessage(TextComponent.fromLegacyText(msg));
    }

    @Override
    public void onClose(AnvilGui gui) {
        p.sendMessage(TextComponent.fromLegacyText(Main.prefix_player + "§cDer Vorgang wurde abgebrochen!"));
    }
});

anvilGUI.open();

Bug: When I delete the Text with 'Backspace' it removes the whole text (not the bug). But it adds a Arrow (UTF-8)

Video: https://youtu.be/Rt8NJdw0jXg

WolverinDEV commented 7 years ago

Hey, which os are you using? And whats your default encoding?

SpraxDev commented 7 years ago
WolverinDEV commented 7 years ago

Hmm this is funny. Are you shading BungeeUtils or using the standalone jar?

SpraxDev commented 7 years ago

I'm using the Standalone jar.

I used the jar from the Spigot-Page and moved it to my Waterfall-Plugin-Directory

WolverinDEV commented 6 years ago

Is this issue still alive?

SpraxDev commented 6 years ago

I can't tell. Sorry. I stopped using BungeeUtil and used a Spigot Plugin instead. I remember having some trouble because of 1.8-1.11.2 when recoding (but not sure if my fault or BungeeUtil).

WolverinDEV commented 6 years ago

okey ;(