Sueta

FunctionalServerControl

1.09.5

Great functionality for player/server control

·Plugin
  1. 1.09.5latestUpdate 1.09.5Jan 22, 2023
    Bugs, bugs, and more bugs. Well, nothing, I'll fix it on the sly =) Briefly about the update: · The problem with MySQL and SQLite has been fixed (in theory) · Now clickable messages and hover text are available on server versions from 1.8 to 1.19.3 · AdventureAPI support has been removed (well, except for places with events from Paper) · Added a convenient (in my opinion) component for working with components from md_5 Examples for those who use the API of this plugin (if there are any): Code (Java): package your.custom.pack ; import net.alis.functionalservercontrol.api.FunctionalApi ; import net.alis.functionalservercontrol.libraries.net.md_5.bungee.api.chat.ClickEvent ; import net.alis.functionalservercontrol.libraries.net.md_5.bungee.api.chat.HoverEvent ; import net.alis.functionalservercontrol.libraries.net.md_5.bungee.api.chat.TextComponent ; import net.alis.functionalservercontrol.spigot.additional.textcomponents.Component ; public class Example { public void sendCoolMessage (Player player ) { FunctionalApi api = FunctionalApi. get ( ) ; if (api != null ) { Component. SimplifiedComponent [ ] components = new Component. SimplifiedComponent [ ] { new Component. SimplifiedComponent ( "" ) } ; TextComponent [ ] components2 = new TextComponent [ ] { new TextComponent ( "" ), new TextComponent ( "" ) } ; Component. SimplifiedComponent simplifiedComponent = new Component. SimplifiedComponent ( ) ; //Creating a lightweight version of TextComponent from md_5 simplifiedComponent . append ( new TextComponent ( "your " ) ) . append ( "custom " ) . append ( " ", components ) // " " - delimiter . append ( " ", components2 ) . setHoverEvent (HoverEvent. Action. SHOW_TEXT, "Some hover text" ) . setClickEvent (ClickEvent. Action. OPEN_URL, "https://vk.com/alphatwo" ) . appendOnStart ( new Component. SimplifiedComponent ( "re " ) ) . appendOnStart ( "He" ) . translateDefaultColorCodes ( ) ; //Correctly replaces color codes (usually when switching to a new line, colors using '§' and '&' do not work) String content = simplifiedComponent. getString ( ) ; //We get the text content of the component TextComponent component = simplifiedComponent. get ( ) ; //We get the original component from md_5 api. getCoreAdapter ( ). expansion ( ). sendMessage (player, simplifiedComponent ) ; //We send the Simplified Component to the player api. getCoreAdapter ( ). expansion ( ). sendMessage (player, component ) ; //We send the original component to the player player. spigot ( ). sendMessage (simplifiedComponent ) ; // <- Does not work player. spigot ( ). sendMessage (component ) ; // <- Does not work } } }
    70 downloads
  2. 1.09.4Fast fix 1.09.4Jan 21, 2023
    Quickly fixed a couple of issues with "text is null", also fixed accidentally updated name "FunctionalServerControlSpigot" back to "FunctionalServerControl"
    16 downloads
  3. 1.09.3Update 1.09.3Jan 21, 2023
    Another small update: 1. Fixed problem when loading PacketEventsAPI( Author: retrooper) on newer versions 2. Fixed a couple of found bugs 3. Changed the method of blocking commands (in the file commands-limiter.yml) Now the verification method is specified for each command separately! (Method in testing) Example: Code (YAML): global: deny-message : "&cThis command blocked" use-as-whitelist : false group: default : - /commands [checkMode=first_arg ] # If you set unknown check mode, mode "first_arg" will be used - /to # If "[checkMode={mode}" is not specified, mode "first_arg" will be used - /ban ALis [checkMode=all_args ] # If command written here has words length bigger than 1, mode should be "all_args" moder : - /be [checkMode=first_arg ] - /blocked [checkMode=first_arg ]
    18 downloads
  4. 1.09.2Update 1.09.1Jan 20, 2023
    Small update:​ What changed:​ · Fixed bug with command " /cheatcheck"​ · Added check for new plugin versions​
    29 downloads
  5. 1.09.1Jan 19, 2023
    25 downloads
  6. 2023-01-18Jan 18, 2023
    25 downloads

Similar projects

Plugin →