Sueta

DreamAPI

3.0

[ActionBar - ConfigurationFile - SidebarDisplay - Potion - AdvancementMessage]

·Config
  1. 3.0latestRecode - More features - Improve - FixSep 3, 2017
    Check main presentation for this update. This update ask me lot a of work, a pizza and a coffee wouldn't be refused, click on button to help me. ​
    6 downloads
  2. 2.4.1FixAug 21, 2017
    Fix Configuration for commented File
    10 downloads
  3. 2.4Advancement Message / ToastAug 21, 2017
    AdvancementMessage This features is made for displaying toast/notification not to create real Advancement !!! .SpoilerTarget">Spoiler: See example code Code (Text): private static AdvancementMessage welcome = new AdvancementMessage( new NamespacedKey(instance, "dreamapi-2108171325"), new FormatedChatComponent("§bWelcome on Sweetdream"), "minecraft:bookshelf", "task", instance); @EventHandler public void onJoin(PlayerJoinEvent event) { new BukkitRunnable() { @Override public void run() { welcome.sendAdvancement(event.getPlayer()); } }.runTaskLater(instance, 20); } Field: · id must be unique · title must be FormatedChatComponent (easy way: new FormatedChatComponent("§6yourtext")) · icon must be an minecraft id like minecraft:stone (press F3+H in game to show it) · frame must be "task", "goal" or "challenge" Javadoc and optimization comes later. If you want to support me, don't forget to click here
    5 downloads
  4. 2.3Commented configurationJul 16, 2017
    · Add CommentedPluginConfiguration, don't save it in your code or you will lose the comments · ConfigurationCollection support CommentedPluginConfiguration with "addCommentedConfiguration(String fileName)" and "getCommentedConfigByName(String fileName)" .SpoilerTarget">Spoiler: Example Code (Text): public void onEnable() { ConfigurationCollection configurations = new ConfigurationCollection(this); configurations.addCommentedConfiguration("spigotExample"); CommentedPluginConfiguration config = configurations.getCommentedConfigByName("spigotExample"); config.get("test"); } --------------- · Optimization --------------- [Bug] Maybe bug for ConfigurationCollection, Console_ report it me, i will resolve it as soon as i can, and if i found the error (i haven't got error on my side) Tell me in discussion if you found a issue (send code use and error)
    18 downloads
  5. 2.2Custom PotionJul 3, 2017
    More potions adds, normally all minecraft effects have 12 potions type: · HASTE · HASTE_LONG · HASTE_II · HASTE_LONG_II · HASTE_SPLASH · HASTE_LONG_SPLASH · HASTE_II_SPLASH · HASTE_LONG_II_SLASH · HASTE_LINGERING · HASTE_LONG_LINGERING · HASTE_II_LINGERING · HASTE_LONG_II_LINGERING Wiki here for differents values. Tipped Arrow Custom coming soon ! For 1.11, no more updates For those who check source code, the wiki is not complete for custom potion (time and power missing), if you want help me you can modify this file with the code here , potions in txt file is in the same order that pastebin. Send me file when you do it. Thanks for you help.
    28 downloads
  6. 2.1Potion and Tipped ArrowJun 20, 2017
    New update: Add of MyPotion list, work like Material Add of MyTippedArrow list, work like Material Update done for 1.11 version V1.1 (same file but updated) Javadoc update too Add pages for Potion and Tipped Arrow in wiki
    18 downloads
  7. 2.0[1.12]Jun 15, 2017
    Hello, the 1.12 is there so DreamAPI 2.0 is there too This version work for 1.12, for 1.11 API download V1.1 in Version History Without back of users, I cannot really solve bugs if there are, or improve the apiwith new features that...
    19 downloads
  8. 1.1Fix error length + Auto-FillJun 6, 2017
    If you have download this update/version vefore 06-06-2017 20h00, i advice you to re-download, somes optimization and fix bug due to distraction sorry Fix bug of name length Add auto fill if you put text in line without put text in line above. This code (without lines 1, 7, 13, 14) Code (Text): siderbar = new SidebarDisplayer("§6§l--- DreamAPI---"); siderbar.setLineText("§eGamemode: Deathmatch", 2); siderbar.setLineText("§eVictory: Victories", 3); siderbar.setLineText("§eStart point: 50", 4); siderbar.setLineText("§eKill point: 100", 5); siderbar.setLineText("§eRound point: 100", 6); siderbar.setLineText("§e----------------", 8); siderbar.setLineText("§7nobody", 9); siderbar.setLineText("§7nobody ", 10); siderbar.setLineText("§7nobody ", 11); siderbar.setLineText("§e---------------- ", 12); siderbar.setLineText("§eip.du.serveur.com", 15); Show this Contact me in discussion or in private message if you found a problem, a bug, or to propose news features. And don't forget to review or make a donation
    26 downloads
  9. 1.0Jun 5, 2017
    22 downloads

Similar projects

Config →