Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by Moose1031, Nov 5, 2019.
Permban Class: https://pastebin.com/ufAJZP81
It only kicks the player but it isn't ban them
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).
Player pp = Bukkit.getServer().getPlayer(args);
String pps = pp.toString();
You should be doing String pps = pp.getName();
I know what pps, ppu, ps are bad var names I use them because I remember them easier
You add a player's uuid as string to the ban list using player names?
Fix it thanks for the help