1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

SlapperTrait newbie coding

Discussion in 'Help' started by princeace, Feb 26, 2020.

  1. Xenophilicy

    Xenophilicy Spider Jockey

    Messages:
    31
    GitHub:
    xenophilicy
    So, from what I understand, you're trying to update the name tag when a player joins the world that the Slapper represents?
     
  2. princeace

    princeace Slime

    Messages:
    78
    GitHub:
    PrincessSeah
    not the name tag

    count of player when joining in other world or warp into another world
     
  3. Xenophilicy

    Xenophilicy Spider Jockey

    Messages:
    31
    GitHub:
    xenophilicy
    Well that's what the function you're editing does... Its name is getDisplayName(), AKA the entity's name(tag)
     
    Last edited: Feb 26, 2020
  4. princeace

    princeace Slime

    Messages:
    78
    GitHub:
    PrincessSeah
    ok and then what code i put in slapperhuman.php?
     
  5. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    I'd reccomend you to start on easier project if you don't understand those basics... Also if you want to make slapper plugin better, contact plugin author about possible improvements, or create new one.
     
    Xenophilicy likes this.
  6. Xenophilicy

    Xenophilicy Spider Jockey

    Messages:
    31
    GitHub:
    xenophilicy
    Exactly what I was thinking
     
  7. princeace

    princeace Slime

    Messages:
    78
    GitHub:
    PrincessSeah
    [15:48:26] [Server thread/CRITICAL]: Error: "Class 'slapper\Server' not found" (EXCEPTION) in "plugins/SlapperJoinMod.phar/src/slapper/SlapperTrait" at line 86

    this is my problem when i join and got internal server error

    i have CreativePlot world

    i just wanna make count player on CreativePlot
     
  8. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    It seems you didn't understand what I said
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.