Simple Plugin Recode Needed

Discussion in 'Archived: Plugin Requests' started by PureTurmoil, Jun 30, 2012.

  1. Offline


    So there is a great name changing plugin thats great for my server, the problem is that if you give yourself a random name you are then the default steve, i would like the plugin to do the same exact thing but not change the skin, On the page he includes the dl link and the source code, Thanks in advance anyone

    if anyone does do would love forever

    on the thread there are tons of people asking for the same thing without skin changing

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 26, 2016
  2. Offline


  3. Offline


  4. Offline

    Deleted user

  5. Offline


    what is that?
  6. Offline

    Deleted user

    A Bukkit method that changes the name everyone sees that player as but the player still technically keep his/her name, allowing them to keep their skin as well.
  7. Offline


    package net.rymate.ChangeName;
    import java.util.logging.Logger;
    import net.minecraft.server.EntityPlayer;
    import net.minecraft.server.EntityTracker;
    import net.minecraft.server.WorldServer;
    import org.bukkit.ChatColor;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.craftbukkit.entity.CraftPlayer;
    import org.bukkit.entity.Player;
    public class ChangePlayerName extends JavaPlugin {
        Logger log = Logger.getLogger("Minecraft");
        public void onDisable() {
   + "disabled!");
        public void onEnable() {
   + "enabled!");
        public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
            if (!(sender instanceof CraftPlayer)) {
                sender.sendMessage("You are not an in-game player!");
                return false;
            if (sender.hasPermission("changename.change"))  {
                EntityPlayer player = (EntityPlayer) ((CraftPlayer) sender).getHandle();
                Player senderplayer = (Player) sender;
                if (args.length > 0) {
                    sender.sendMessage("You are now discuised as " + args[0] + "!");
                    setPlayerName(player, args[0]);
                } else {
                    sender.sendMessage("Wrong usage! /changename <name>");
                return true;
            } else {
                sender.sendMessage("Nope, can't do that!");
                return false;
        //thanks to Lahwran for this code :D
        public void setPlayerName(EntityPlayer player, String newname) {
            WorldServer world = (WorldServer);
            EntityTracker tracker = world.tracker;
   = newname;
    thats the code, I dont do Java so i dont know what to do, I can change the name in the players list/TAB key, but the plugin i use for chat and name above head changes the skin is there a way to take out the skin part and recompile or somethig?

Share This Page