CraftPlayer using Bukkit

Discussion in 'Plugin Help/Development/Requests' started by PixelDoesMC, Dec 13, 2014.

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

    PixelDoesMC

    Hello, I have a question. Due to the DMCA take-down for CraftBukkit. I was wondering how I could cast a Player to CraftPlayer in Bukkit or send a packet to a Player.
    What I've got so far in this class:
    Code:
    public class Packets {
        public void sendPacket201(Player pl, String pn, boolean co, int pi){
            /* pl is the packet reciever
             * pn is player to show/hide's name
             * co is if they are connected
             and pi is the ping to show */
        }
    }
    
    Just ignore the fact that this doesn't extend JavaPlugin or Listener.
     
  2. Offline

    mrCookieSlime

    @PixelDoesMC
    There is no way to access NMS Code in Bukkit itself.
    You need CraftBukkit in order to use it.
     
  3. Offline

    PixelDoesMC

    Is there any way I can do it after the DMCA takedown?
     
  4. Offline

    mrCookieSlime

    @PixelDoesMC
    You could switch to Spigot for example.
    Or use Spigot's CraftBukkit Build.
     
  5. Offline

    PixelDoesMC

    @mrCookieSlime
    How can I do that because on their GitHub repo it shows this message:
    [​IMG]
     
  6. Offline

    mrCookieSlime

  7. Offline

    PixelDoesMC

Thread Status:
Not open for further replies.

Share This Page