1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice
We welcome you on our site. This site is devoted to the Nukkit project and all that is connected with him. Here you can communicate, download plugins, also many other things get acquainted! Register the account right now :3

Outdated LeetAuth v1.0.2

A centralized authentication system for Nukkit.

  1. ProjectInfinity

    ProjectInfinity Resource Staff

    Messages:
    18
    Likes Received:
    13
    Пользователь ProjectInfinity разместил новый ресурс:


    LeetAuth - A centralized authentication system for Nukkit.

    Узнать больше об этом ресурсе...
     
    fromgate likes this.
  2. ProjectInfinity

    ProjectInfinity Resource Staff

    Messages:
    18
    Likes Received:
    13
    impact likes this.
  3. fromgate

    fromgate Administrator

    Messages:
    664
    Likes Received:
    186
  4. Varfalomey

    Varfalomey Developer (Level 3)

    Messages:
    32
    Likes Received:
    12
    Minecraft:
    Varfalomey
    PVP with a player when you are not logged in ..
     
  5. fromgate

    fromgate Administrator

    Messages:
    664
    Likes Received:
    186
    @ProjectInfinity
    Will your plugin disable PVP while player is not logged-in?
     
  6. ProjectInfinity

    ProjectInfinity Resource Staff

    Messages:
    18
    Likes Received:
    13
    I suggest continuing here: http://forums.nukkit.cn/index.php?threads/leetauth.5/


    This is currently how damage is handled.

    Code:
    @EventHandler(priority = EventPriority.MONITOR)
    public void onEntityDamage(EntityDamageEvent event) {
    if(event.getEntity() instanceof Player && !plugin.isAuthenticated(((Player) event.getEntity()).getName())) event.setCancelled(true);
    }
    Can you confirm that you can damage through PvP a player who is not logged in?
     
  7. fromgate

    fromgate Administrator

    Messages:
    664
    Likes Received:
    186
    Please describe the situation. @ProjectInfinity needs more info to reproduce it.
     
  8. ProjectInfinity

    ProjectInfinity Resource Staff

    Messages:
    18
    Likes Received:
    13
    Confirmed that you cannot damage another player through PvP if the player is not logged in.
     
    fromgate likes this.

Share This Page