Error while add UUID to config while Join

Discussion in 'Plugin Development' started by Choohan, Nov 12, 2016.

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

    Choohan

    I am trying to add the UUID to the config once the player join, but it come out errors.. why?

    Error Log:

    http://pastebin.com/EFxnCkeB


    Code:
    @EventHandler
    public void onPlayerJoin(PlayerJoinEvent e){

    Player player = e.getPlayer();

    player.sendMessage("Welcome");

    e.setJoinMessage("Welcome");
    List<String> playerconfig = plugin.getPlayerConfig().getStringList("Players");

    playerconfig.add(player.getUniqueID());

    plugin.getPlayerConfig().set("Players", playerconfig);

    plugin.
     
    Last edited: Nov 12, 2016
  2. Offline

    Zombie_Striker

  3. Offline

    Choohan

  4. Offline

    projectwoosh

    You never define your plugin in your JoinListener,
     
Thread Status:
Not open for further replies.

Share This Page