Could someone help me with this please?

Discussion in 'Plugin Development' started by Viralcraftowner, Apr 24, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    Viralcraftowner

    Hey guys, please don't overcomplicate your answers. I'm really new to Java and coding in gen
    eral, this is just a simple project i'm trying to do.

    It's a short plugin that stores player names (and assignes a value to their name called a warning)
    In short, if a player says a banned word (specified inside the config.yml) the number under their name is given a +1. If they reach X amount, they are punished, essentially a simple warnings plugin.

    I'm having an issue however, I need to make my "getPlayerName" function call in the onEnable because I (think?) that's why it's not working properly. The "warnings.yml" is generated, but any player who logs in's name isn't (as it should be)

    I need to know how I can call the getPlayerName in the PlayerChat class to run in the onEnable in the plugin.yml class.

    I'd appriciate simple, concise answers rather then a link to a very complicated bukkit documentation. I have no java knowledge other than this.
    Here's a screenshot of my plugin.yml and playerchat.yml.
    http://prntscr.com/f09wz9
    http://prntscr.com/f09wrb


    Any insight is appriciated!
     
  2. Offline

    Caderape2

  3. Offline

    Viralcraftowner

    While I appriciate the reply, I did kind of ask for a simpler explination rather then linking an overcomplicated bukkit documentation. I've read this page several times and it makes virtually no sense to me, which is why I asked for a simpler answer.
     
  4. Offline

    Zombie_Striker

Thread Status:
Not open for further replies.

Share This Page