Anon HELP

Discussion in 'Spigot Plugin Development' started by KingDotCom, May 24, 2016.

  1. I am coding a anon plugin. I want to execute a command and use DisgiuseCraft API or another API to change their name to &kiiiiiiiiii Thanks
    Code (Text):
    package me.prosperity.uhc;

    import org.bukkit.command.Command;
    import org.bukkit.command.CommandExecutor;
    import org.bukkit.command.CommandSender;
    import org.bukkit.entity.Player;

    public class AnonD  implements CommandExecutor {
       
        public boolean onCommand(
                CommandSender sender, Command cmd, String label, String[] args){
            if(label.equalsIgnoreCase("autod")){
                if(sender instanceof Player) {
                   
                }else{
                    System.out.println("NO DO DIS COMMEND KED");
                }
            }
            return false;
        }
       

    }
     
     
  2. What's exactly your problem?
     
  3. i suggest you learn java beter.
     
  4. Choco

    Moderator

    Actually, in this case, all his Java conventions are proper. The reason hes making a thread is because he has the slightest of clue how to change a players display name above their head. Tons of people are still unaware how to do it as its not so black and white. It's a bit of packet manipulation. Your reply is quite unnecessary, because once again, from what we can see, his programming habits are perfectly fine

    His English on the other hand could use some work, but who are we to judge
     
    • Agree Agree x 4
    • Friendly Friendly x 2
  5. Choco

    Moderator

    "Just build your own car instead of buying one". Easier said than done ;P
     
    • Like Like x 1
  6. So could you help me?
     
  7. What did you try?
     
  8. codes above ?
     
  9. thats an empty if else case
     
  10. how should I know ? he wanted us to help him out to fill them.
     
    • Optimistic Optimistic x 1