Bukkit, CraftBukkit, Spigot & BungeeCord 1.13 Development Builds

Discussion in 'News and Announcements' started by md_5, Jul 15, 2018.

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

    Benefactor

    Will this be added to every future MC version? Or only 'breaking' major versions
     
  2. Ty for clarififying such :)

    Is it easy to implement?
     
  3. md_5

    Administrator Developer

    Undecided, the spec has deliberately been left vague.
     
  4. HYPEEEEE! Thanks md_5 for being so quick on these pre-releases. I guess it's time to test now.
     
    • Agree Agree x 1
  5. md_5

    Administrator Developer

    You just need to override onTabComplete (and implement TabCompleter if your commands are in separate classes to main)
     
    • Useful Useful x 2
  6. Code (Text):

    public class YourTabCompleter implements org.bukkit.command.TabCompleter {

      @Override
       public List<String> onTabComplete(CommandSender sender, Command cmd, String label, String[] args) {

       }
    }
     
     
    • Useful Useful x 1
  7. Well, that's significantly larger than I expected.

    They've finally removed the most useless thing in the whole API;
    Code (Java):
    BukkitScheduler.cancelAllTasks
     
     
    • Like Like x 1
  8. Nice Update.. Good work ;)
     
  9. Highly appreciated, so if I wanted to override within same command class I just use onTabComplete?

    Appreciated <3 just check command return the list of Args wanted?
     
  10. Yup, you should just return the args that you want the player to see.

    Code (Text):

        if (cmd.getName().equalsIgnoreCase("sdb") && sender.hasPermission("minetopiasdb.sdb")) {
               ArrayList<String> completions = new ArrayList<>();
               if (args.length == 1) {
                   completions = new ArrayList<>(
                           Arrays.asList("update", "ikweethetzeker", "help", "reset", "reload", "saveall", "changelog"));
                   completions = getAppliableTabCompleters(args.length == 1 ? args[0] : "", completions);
               } else {
                   if (args[0].equalsIgnoreCase("changelog")) {
                       completions = new ArrayList<>(Arrays.asList("cmd", "fixes", "functies"));
                       completions = getAppliableTabCompleters(args.length == 2 ? args[1] : "", completions);
                   } else {
                       return null;
                   }
               }
               Collections.sort(completions);
               return completions;
           }
     
    Just add this into the onTabComplete method, and add this method into the class (it helped me out..)
    Code (Text):

        public ArrayList<String> getAppliableTabCompleters(String arg, ArrayList<String> completions) {
           if (arg == null || arg.equalsIgnoreCase("")) {
               return completions;
           }
           ArrayList<String> valid = new ArrayList<>();
           for (String posib : completions) {
               if (posib.startsWith(arg)) {
                   valid.add(posib);
               }
           }
           return valid;
       }
     
    Just contact me on Discord (MrWouter#3441) if you need any more help with this
     
    • Useful Useful x 3
  11. Thanks for all hard works!
     
  12. Maximvdw

    Benefactor

    That moment when build tools is faster in downloading + patching than the Minecraft client is in downloading the client jar and dependencies
     
    • Funny Funny x 2
  13. Wow, you’re a life saver! <3 highly appreciated, I wanted to move on from ACF and use something that would be cool especially for 1.13.

    Hats off to you for this <3
     
    • Friendly Friendly x 1
  14. ???
    upload_2018-7-15_14-0-47.png
    Yes, i downloaded it from the Spigot 1.13 jar, but here not show it.
     
  15. It will only show once 1.13 is officially released
     
  16. Yeah, right.
     
  17. Begun updating my plugins for 1.13, but found that #spawnFallingBlock only supports MaterialData. There's BlockData but that's NMS. Need to make it support Material.

    edit: seems that NMS doesn't support the new things either - it still uses IDs.

    edit2: Does anyone know where Effect.FOOTSTEP went !?!? D:

    But I am loving the new material enum :)
     
    #117 SamB440, Jul 15, 2018
    Last edited: Jul 15, 2018
    • Agree Agree x 1
  18. Amazing to see that a public Dev build is already out. Thank you all for all your hard work, keeping the Minecraft mulitplayer scene alive. Now is the time for me to pick up development again on my own plugin. :)
     
  19. md_5

    Administrator Developer

    BlockData is not NMS, it’s the new API.
     
  20. There is a problem...
    Is EnumParticle deleted in 1.13?
    upload_2018-7-15_14-37-29.png
     
Thread Status:
Not open for further replies.

Share This Page