Permissions - Minecraft Plugin Development Ep. 3 (2022)

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 2024

ความคิดเห็น • 20

  • @WornOffKeys
    @WornOffKeys  2 ปีที่แล้ว +2

    🔥 Free Java Course:
    wornoffkeys.com/java-for-free
    🙋‍♂ Need help? Ask in our Discord community:
    wornoffkeys.com/discord

  • @RasmusRix
    @RasmusRix 2 ปีที่แล้ว +3

    Thanks so much for this Playlist teaching us how to make our own plugins, I really appreciate it, it helps a lot! I hope you continue the series.

  • @hytalePvP
    @hytalePvP ปีที่แล้ว +1

    Short and precise as i like it 5/5

  • @akirabanevr1034
    @akirabanevr1034 2 ปีที่แล้ว +1

    Thanks for the tutorial, I got question in mind, where and how to do you give a player the permission example.torch.diamond ?

    • @WornOffKeys
      @WornOffKeys  2 ปีที่แล้ว +2

      The server owners using your plugin will set those up through plugins like PermissionsEx, LuckPerms, etc.

    • @akirabanevr1034
      @akirabanevr1034 2 ปีที่แล้ว

      @@WornOffKeys Okay, yes that way I understand! Thanks a lot !

    • @kanem8751
      @kanem8751 ปีที่แล้ว

      @@WornOffKeysIm trying to build my own permissions setup without using external plugins. How do I add permissions to certain players? Where is the permissions data stored?

  • @Veno1204
    @Veno1204 ปีที่แล้ว

    where do i go to add the perm

  • @jeremy5602
    @jeremy5602 ปีที่แล้ว

    How can you make a video about permissions but not explain how individual permissions work or how to add or remove permissions to players?

  • @danielhobbyist
    @danielhobbyist ปีที่แล้ว

    How to change permission nodes. How to give certain players permission?

  • @itznafle1134
    @itznafle1134 2 ปีที่แล้ว +2

    the permissions thing doesnt work for me, the torches switch to diamond blocks even when im not op

  • @alexander_228
    @alexander_228 ปีที่แล้ว

    I wonder why NOBODY tells you how to actually add permissions in the permissions.yml file

    • @WornOffKeys
      @WornOffKeys  ปีที่แล้ว

      Those are typically done through other plugins like LuckyPerms or Permissions Ex. As developers we just need to check for the permissions, but server owners are the ones who need to set them up. Obviously if you'd like to set up your own to make sure everything works then you can use another permission plugin.

    • @alexander_228
      @alexander_228 ปีที่แล้ว

      @@WornOffKeys Yeah, but
      1) A lot of people are actually coding a plugin for their own server
      2) How'd you check if your permissions work if you don't know how to set them?
      I don't mean that you need to give a detailed explanation, but at least say smth like "and if you don't know how to set up permission then go look at some LuckPerms tutorial"

  • @wisemango
    @wisemango 2 ปีที่แล้ว

    pls make more and feed my addiction

  • @AEDXYT
    @AEDXYT 2 ปีที่แล้ว +1

    Hello, can you upload the Plugins in pocket mine API 4.0.0 version 1.18.30 PHP language please 😢

  • @ChizYT
    @ChizYT 2 ปีที่แล้ว

    nice

  • @MostIySilent
    @MostIySilent 2 ปีที่แล้ว

    I followed the tutorial and my code appears to be identical to yours. However, the diamond block still replaces the torch when I place it down even when I don't have op. I think it may be an issue with my server permissions rather than the plugins. Still, maybe you can help. The code in the torch handler class:
    package myfirstplugin.myfirstplugin.handlers;
    import jdk.internal.icu.impl.UCharacterProperty;
    import org.bukkit.Bukkit;
    import org.bukkit.Material;
    import org.bukkit.block.Block;
    import org.bukkit.event.Listener;
    import org.bukkit.event.block.BlockPlaceEvent;
    import myfirstplugin.myfirstplugin.MyFirstPlugin;
    public class TorchHandler implements Listener {
    public TorchHandler(MyFirstPlugin plugin) {
    Bukkit.getPluginManager().registerEvents(this, plugin);
    }
    public void onTorchPlace_Normal(BlockPlaceEvent event) {
    if (event.getBlock().getType() != Material.TORCH) {
    return;
    }
    if (!event.getPlayer().hasPermission("myfirstplugin.torch.diamond")) {
    return;
    }
    Bukkit.getLogger().info("A torch was placed");
    event.getBlock().setType(Material.DIAMOND_BLOCK);
    }
    }
    (ik there are unnecessary imported classes but that shouldn't change much)
    Also I wrote this in my main class like you said:
    @Override
    public void onEnable() {
    // Plugin startup logic
    Bukkit.getLogger().info("Hello World");
    new TorchHandler(this); THIS LINE
    }
    What am I doing wrong? Also ty for the tutorial it is great.

    • @MostIySilent
      @MostIySilent 2 ปีที่แล้ว

      oh yeah also I'm using paper.