Solved [1.8.8]Player will not get banned

Discussion in 'Spigot Plugin Development' started by Moose1031, Nov 5, 2019.

Thread Status:
Not open for further replies.
  1. Please name your variables properly.

    pps, ppu, and ps are terrible variable names.

    Your issue is that you're using pps in place of the username argument (you should be doing UUIDs either way).

    Code (Java):

            Player pp = Bukkit.getServer().getPlayer(args[0]);
            String pps = pp.toString();
    You should be doing String pps = pp.getName();
  2. I know what pps, ppu, ps are bad var names I use them because I remember them easier
  3. SteelPhoenix


    You add a player's uuid as string to the ban list using player names?
  4. Fix it thanks for the help
Thread Status:
Not open for further replies.