Sueta

Interface4

4.9

Provides a general interface for my plugins

·Plugin
  1. 4.9latest1.20.4+ supportOct 26, 2024
    Changelog: · GUI API no longer cares if items have been "flattened" by 1.20.4+ space saving measures or not · 1.20.4+ support added
    4 downloads
  2. 4.8SaberFactions supportMar 24, 2024
    Changelog: · SaberFactions is now supported
    307 downloads
  3. 4.7ActionBar API updatedMar 18, 2024
    Changelog: · ActionBar API can now take BaseComponent's to allow for different formatting and font types in the same message
    44 downloads
  4. 4.61.20.x supportJul 12, 2023
    Utilities updated to include 1.20.x support
    398 downloads
  5. 4.5Domain updatedJun 7, 2023
    Web domain updated, restoring auto-update capabilities
    120 downloads
  6. 4.4VehicleMoveEventJun 3, 2023
    VehicleMoveEvent added, as per request
    38 downloads
  7. 4.3Vehicle API implementedMay 29, 2023
    The Vehicle API from my Space plugin has now been implemented.
    40 downloads
  8. 4.2URL connections made asynchronousMar 27, 2023
    Changelog: · URL connections have been made asynchronous to prevent freezing on high latency servers
    186 downloads
  9. 4.1GUI API enhancementsMar 24, 2023
    Changelog: · GUI#addClickAction(); method added · GUI#addDragAction(); method added · GUI#isDragLocked(); method added · GUI#setDragLocked(); method added
    26 downloads
  10. 4.0Thread optimizationMar 8, 2023
    Significant performance improvements
    63 downloads
  11. 3.9Lands API updatedFeb 8, 2023
    Changelog: · Lands API updated to latest
    90 downloads
  12. 3.8FactionsUUID support added to ProtectionManager utilityJan 6, 2023
    Summed up in title.
    134 downloads
  13. 3.7Jigsaw utility added, GUI API addedDec 2, 2022
    Changelog: · Jigsaw interface added for Space to procedurally generate structures · GUI API added · BorderStyle enum added · Documentation moved to GitHub
    118 downloads
  14. 3.6DebugMarker API added, bug fixesNov 6, 2022
    Changelog: · DebugMarker API added (Source) · WorldGuard will no longer be enabled if WorldGuard is installed but WorldEdit is not (Since WorldGuard depends on WorldEdit)
    88 downloads
  15. 3.5Deprecated methods removed, ZipUtils capabilities expandedNov 4, 2022
    The following methods have been removed, as they are unused and have better integrated alternatives: Code (Java): JSON. sendWebsite (Player pl, String display, String hover, String website ) ; JSON. send (Player pl, String display, String hover, String command ) ; JSON. sendPrompt (Player pl, String display, String hover, String prompt ) ; JSON. sendWebsite (CommandSender sender, String display, String hover, String website ) ; JSON. send (CommandSender sender, String display, String hover, String command ) ; JSON. sendPrompt (CommandSender sender, String display, String hover, String prompt ) ; ZipUtils now have methods that do not require a CommandSender, and can also zip singular files: Code (Java): ZipUtils. createBackup (JavaPlugin main, ArrayList <String > files ) ZipUtils. createBackup (JavaPlugin main, String file ) ZipUtils. createBackup (JavaPlugin main, CommandSender sender, String prefix, String file )
    39 downloads
  16. 3.4Block protection, and other minor improvementsNov 1, 2022
    Changelog: · Interface4 now hosts block protection capabilities, meaning it is now super easy to check whether a block can be broken, placed, or interacted with using a bunch of different world protection plugins · "Hooks" command now shows both the plugins Interface4 hooks into, and the plugins hooked into Interface4 · Added "isReloaded()" method to PluginUtils class, to detect when the server has been reloaded
    36 downloads
  17. 3.3JSON API optimisation, new events addedOct 16, 2022
    Changelog: · JSON API now retains color formatting between displayed elements · ParticleUtils now contains drawEffect and drawMovingEffect methods · PlayerDoubleSneakEvent added · DirectablePlayerScrollEvent added
    56 downloads
  18. 3.2Added getLocation() method to FakeBlock classJul 8, 2022
    Summed up in title
    293 downloads
  19. 3.1XMaterial updated to latestJun 27, 2022
    Summed up in title
    69 downloads
  20. 3.0JChatComponent addedJun 25, 2022
    JChatComponent Accepts three parameters of type String: · "display" - the text to display. Cannot be null. · "hover" - the text to display on hover. Can be null. · "text" - the text to chat on click. Can be null.
    42 downloads
  21. 2.9Added option to disable auto update and disable auto restart, Added /i4 updateJun 21, 2022
    After updating, please generate a fresh config.yml file for the changes to appear, or add the following options to your config.yml: Code (YAML): auto-update : true # Should Interface4 auto update. If true it is highly recommended to have "auto-restart: true" auto-restart : true # If an update is available, should the server automatically restart after downloading an update to apply changes Using the command /i4 update will now automatically update the plugin to the latest version. Changes will be applied on restart.
    45 downloads
  22. 2.8NullPointerException on plugin load resolvedJun 21, 2022
    Summed up in title
    31 downloads
  23. 2.7Update checking now no longer uses legacy SpigotMC version link, JSON utils updatedJun 21, 2022
    Update checking Interface4 now uses: · https://api.spigotmc.org/simple/0.2/index.php?action=getR… As opposed to: · https://api.spigotmc.org/legacy/update.php?resource=PLUGINID To ensure a much faster update speed and reliability. JSON New methods added to make sending JSON messages more dynamic. Any methods containing a CommandSender will send as raw text if the sender is not an instance of Player. Code (Java): JSON. send (Player pl, ArrayList <JSONComponent > components ) ; JSON. send (CommandSender sender, ArrayList <JSONComponent > components ) ; JSON. send (CommandSender sender, JSONComponent... components ) ;
    21 downloads
  24. 2.6JSON API updatedJun 21, 2022
    JSON.java Now only has one method which can accept infinite component parameters: Code (Java): JSON. send (Player pl, JSONComponent... components ) ; Components Types JClipboardComponent Accepts three parameters of type String: · "display" - the text to display. Cannot be null. · "hover" - the text to display on hover. Can be null. · "clipboard" - the text to copy to clipboard on click. Can be null. JPromptComponent Accepts three parameters of type String: · "display" - the text to display. Cannot be null. · "hover" - the text to display on hover. Can be null. · "prompt" - the prompt to add to the textbox on click. Can be null. JCommandComponent Accepts three parameters of type String: · "display" - the text to display. Cannot be null. · "hover" - the text to display on hover. Can be null. · "command" - the command to run on click. Can be null. JWebComponent Accepts three parameters of type String: · "display" - the text to display. Cannot be null. · "hover" - the text to display on hover. Can be null. · "website" - the website URL to open on click. Can be null. JTextComponent Accepts two parameters of type String: · "display" - the text to display. Cannot be null. · "hover" - the text to display on hover. Can be null. Example of usage Code (Java): JTextComponent text = new JTextComponent ( "This is raw text with a hover", "this is the hover text" ) ; JWebComponent webText = new JWebComponent ( "This will open a website when clicked", "this is the hover text", "https://www.google.com" ) ; JCommandComponent commandText = new JCommandComponent ( "This will run a command when clicked", "this is the hover text", "this is the command" ) ; JSON. send (player, text, webText, commandText ) ; // Unlimited components can be supplied and will be automagically appended
    36 downloads
  25. 2.5PastebinUtils added, JSON utils updatedJun 19, 2022
    PastebinUtils: PastebinUtils makes creating pastes on pastebin easy. The documentation on the required arguments is here. The method will return a String which is a link to the generated paste. · pasteName, pasteFormat, and expiry can be null. · If expiry is null, the post will never expire. · devKey and content must not be null. Code (Java): PastebinUtils. createPaste ( String devKey, String pasteName, String pasteFormat, String expiry, String content ) ; JSON changes: Prompt methods now no longer add "/" prior to their prompt
    38 downloads
  26. 2.4Update checking resolved, JSON suggest prompt addedJun 19, 2022
    JSON suggest prompt added Code (Java): JSON. sendPrompt (Player pl, String shownMessage, String hoverMessage, String command ) ; JSON. sendPrompt (CommandSender sender, String shownMessage, String hoverMessage, String command )
    31 downloads
  27. 2.3Added CommandSender option to JSON classJun 18, 2022
    · The same logic applies to both of these methods as they would previously if they had been a Player provided. · If the CommandSender is not an instance of Player, shownMessage will be sent without JSON attributes Code (Java): JSON. send (CommandSender sender, String shownMessage, String hoverMessage, String command ) ; JSON. sendWebsite (CommandSender sender, String shownMessage, String hoverMessage, String url ) ;
    41 downloads
  28. 2.2Adds GuardianBeam supportJun 11, 2022
    Adds GuardianBeam support to Interface4. This is not my work and is here to aid in better particle effects within my plugins. Special shoutout to @SkytAsul for the great work and brilliant resource.
    73 downloads
  29. 2.1Added DustOptions support to ParticleUtilsJun 11, 2022
    Two pretty simple new method to allow for resizing and recolouring of particles drawn by ParticleUtils Code (Java): ParticleUtils. drawLine (Location loc1, Location loc2, double frequency, Particle particle, DustOptions dustOptions ) ; ParticleUtils. drawMovingLine (Location loc1, Location loc2, double time, double frequency, Particle particle, JavaPlugin plugin, DustOptions dustOptions ) ;
    27 downloads
  30. 2.0Auto updater added + APIMay 29, 2022
    Interface4 will now not only auto update, but has an auto update API so that you can update your own plugins automatically (Provided the resource ID and an instance of the Plugin) · projectID is the integer at the end of a plugin's Spigot link (For example, Interface4 has a projectID of 102119) Return values: · 'true' - the plugin was successfully updated and the server must be restarted for changes to apply · 'false' - an error occurred while updating the plugin · 'null' - the plugin is already running the latest version Code (Java): VersionUtils. updatePlugin (Plugin plugin, int projectID ) ; VersionUtils. updatePlugin (Plugin plugin, int projectID, String versionURL ) ; Duplicate as version posted 30 minutes ago had outdated version string
    97 downloads
  31. 1.9Auto updater added + APIMay 29, 2022
    Interface4 will now not only auto update, but has an auto update API so that you can update your own plugins automatically (Provided the resource ID and an instance of the Plugin) · projectID is the integer at the end of a plugin's Spigot link (For example, Interface4 has a projectID of 102119) Return values: · 'true' - the plugin was successfully updated and the server must be restarted for changes to apply · 'false' - an error occurred while updating the plugin · 'null' - the plugin is already running the latest version Code (Java): VersionUtils. updatePlugin (Plugin plugin, int projectID ) ; VersionUtils. updatePlugin (Plugin plugin, int projectID, String versionURL ) ;
    21 downloads
  32. 1.8VersionUtils method addedMay 28, 2022
    VersionUtils is now capable of checking whether a plugin is up to date by a separate URL than Spigot ID's alone, and also getting the version from a specific URL. Please note the only web content must be the version so it is advised that this is purely a text file Code (Java): VersionUtils. isLatestByURL (JavaPlugin plugin, String URL ) ; VersionUtils. getLatestByURL (JavaPlugin plugin, String URL ) ;
    23 downloads
  33. 1.7ParticleUtils added, VersionUtils added, PluginUtils addedMay 27, 2022
    ParticleUtils ParticleUtils is capable of drawing static or moving lines between two locations, with a provided frequency (How many per block) and time to move between the two locations (If relevant) Code (Java): ParticleUtils. drawLine (Location loc1, Location loc2, double frequency, Particle particle ) ; ParticleUtils. drawMovingLine (Location loc1, Location loc2, double time, double frequency, Particle particle, JavaPlugin plugin ) ; PluginUtils PluginUtils has one purpose - get a Plugin instance of the main class of another plugin by plugin name Code (Java): PluginUtils. getMain ( String plugin ) ; VersionUtils VersionUtils is an easy way to see whether or not a plugin is using it's latest version on Spigot, or get the latest version posted on Spigot. projectID is the integer at the end of a plugin's Spigot link (For example, Interface4 has a projectID of 102119) Code (Java): VersionUtils. isLatest (JavaPlugin plugin, int projectID ) ; VersionUtils. getLatest (JavaPlugin plugin, int projectID ) ;
    22 downloads
  34. 1.6Minor bug fixMay 25, 2022
    Small syntax error resolved
    41 downloads
  35. 1.5Protocol management updated to enable Space to work better with Paper SpigotMay 25, 2022
    Summed up in title
    36 downloads
  36. 1.4Hook for SpaceAPI updatedMay 24, 2022
    Now calls correct class for SpaceAPI, fixing the two-way hook
    89 downloads
  37. 1.3FakeBlock interface addedMay 22, 2022
    Pretty simple to use, just adds a basic interface for managing ghost blocks Code (Java): // Create a fake block FakeBlock block = new FakeBlock (location, material ) ; // Send the block to a player block. addPlayer (player ) ; // Reset the block to its server-side counterpart block. removePlayer (player ) ;
    37 downloads
  38. 1.2Metrics addedMay 21, 2022
    Metrics added. You can view them here.
    34 downloads
  39. 1.1Update checker configured + config.yml now generates properlyMay 21, 2022
    Summed up in title
    29 downloads
  40. 1.0May 21, 2022
    23 downloads

Similar projects

Plugin →