Warp plugin

Discussion in 'Spigot Plugin Development' started by ZPower124, Jun 28, 2016.

  1. I don't want to be rude, but you should really learn java before doing this. What you should be using in place of those arrays is a List, as it scales bett er than an array with a set amount of elements that you can store in it.
    player is null
    player is of type Object, it should be of type Player
    player.teleport() takes arguments.
     
  2. I took a half year of java, even have a 50 dollar java book. Shows how much I learned.
     
  3. I find using the CraftBukkit API a lot easier.
     
  4. If you already know the fundamentals of Java, then that's fine! It just shows that you need to learn how to use the API. If you're already familiar with the language I recommend looking up the Bukkit tutorials of pogostick29dev :)
     
  5. CraftBukkit is the server software. Simple plugins most certainly should not be using it. Also, the only differences between the Spigot and Bukkit APIs is that Spigot has methods that Bukkit doesn't.
     
  6. Code (Text):
    import java.util.logging.Logger;
    import javax.tools.DocumentationTool.Location;  
    import net.md_5.bungee.api.ChatColor;
    LOL
     
    • Winner Winner x 1