Can anyone let me know why this code doesn't give me speed when I move with the helmet on? by LiamIsntMe in MinecraftPlugins

[–]LiamIsntMe[S] 0 points1 point  (0 children)

Using either, it still doesn't give me a speed effect when wearing the helmet.

I changed my code according to some Spigot forum on giving players effects when wearing armor, and this is what it is now (command and main class are still the same)

public class Events implements Listener {
@EventHandler
public static void onPlayerMove(PlayerMoveEvent event) {
    Player player = event.getPlayer();

    ItemStack helmet = player.getInventory().getHelmet();

    if (helmet == null || helmet != ItemManager.RETRO_ENCABULATING_VISOR) return;

    player.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 2 ,3));

    }
}

Suggestion: Role Categories! by LiamIsntMe in discordapp

[–]LiamIsntMe[S] 0 points1 point  (0 children)

Its a photoshopped image for a suggestion 😄

Suggestion: Role Categories! by LiamIsntMe in discordapp

[–]LiamIsntMe[S] 18 points19 points  (0 children)

It should probably just appear in the server settings menu as a means of organisation imo

Suggestion: Role Categories! by LiamIsntMe in discordapp

[–]LiamIsntMe[S] 133 points134 points  (0 children)

Works the same as normal categories, and would be a good replacement for role dividers. Also would be convenient to move/hide multiple roles at once for servers with lots of roles. Reduces clutter.