Sueta
SE

ServerSigns / BungeeSwitch

0.0.6-005

It is like TeleportSigns

·Plugin

This Plugin should run like TeleportSigns, i was very inspired from it, check it out here: TeleportSigns

Short Story: Some of my friends asked me to make a plugin like TeleportSigns because its broken in newer Versions of Bukkit and Spigot (In our use cases).

Features
- Important messages are editable
- BungeeCord Support
- Layout Support
- did i forgot something?

Commands and Permissions

Commands and Permissions (Copied from plugin.yml)
commands: 
/serversigns 
description: Admin Command, just reloads this plugin (the configs) 
permission: serversigns.reload 

permissions: 
  serversigns.*: 
    description: Permission to do everything for ServerSigns 
    default: op 
    children: 
      serversigns.create: true 
      serversigns.reload: true 
      serversigns.remove: true 
  serversigns.create: 
    description: Allows Player to create ServerSigns 
    default: op 
  serversigns.reload: 
    description: Allows Player to reload this Plugin (the configs) 
    default: op 
  serversigns.remove: 
    description: Allows Player to remove the Sign from list 
    default: op

Setup
Video Tutorial (GER/ENG) on my Blog: MCTCP.at

Config.yml
enable-update-check: true 
check-time: 30  //time is in server ticks (20 = 1 second) 
update-sign-on-player-interact: true 
update-sign-on-player-interact-delay: 40 
server-offline-message: '&2This Server is &4Offline! &6(%displayname%)' 
server-try-join-message: '&2Trying to connect to: %displayname% - %online%/%max%' 
server-join-message: '&2Joining to: %displayname%' 
servers: 
  bungee: //if you want to use the bungeecord join option this is the name used to connect (bungecord config/server name) 
    ip: 127.0.0.1 //ip of the server 
    port: 25577  // query port of the server (must be enabled in server.properties) 
    displayname: BUNGEE  //The Name displayed on the Sign 
  lobby: 
    ip: 127.0.0.1 
    port: 25566 
    displayname: LOBBY1 
  lobby2: 
    ip: 127.0.0.1 
    port: 25567 
    displayname: LOBBY2 
layouts: 
  layout1: 
    line-1: '[%displayname%&r]' 
    line-2: '%online%/%max%' 
    line-3: '&4Sometext' 
    line-4: '[%status%&r]' 
    status-on: '&2ONLINE&r'  //Text Displayed as %status% when server is detected as online 
    status-off: '&4OFFLINE&r' //Text Displayed as %status% when server is detected as offline 
    bungee-join: true //enable right and left klick on sign to join 
    offline-layout: 'layout1_off' 
  layout2: 
    line-1: '[%displayname%&r]' 
    line-2: '%online%/%max%' 
    line-3: '&4Sometext' 
    line-4: '[%status%&r]' 
    status-on: '&2ONLINE&r' 
    status-off: '&4OFFLINE&r' 
    bungee-join: false 
  layout1_off: 
    line-1: '&4################' 
    line-2: '%displayname%' 
    line-3: '&4OFFLINE' 
    line-4: '&4################' 
    status-off: '&4OFFLINE&r'

The variables (%variable%) used in this example config are all that exist

SIGN Setup
line1: [serversigns] 
line2: servername 
line3: layout 
line4: 

If you make a Mistake a Chat message will inform you where a problem is. 
It can take some time to update the sign

And don´t forget to enable the Query Port on your Servers you want to check (as one of my friend ;) )

enable-query=false 
 to --> 
enable-query=true


Planed features:
- Adding auto adjustment of the sign update interval to improve server performance (planned - v0.0.6 - will take some time)
- Use Bungeecord to optain informations and query as fallback (To simplify config and prevent errors in query settings) (planned - v0.0.6, possibly the feature never comes)
- Add ability to make a offline layout for every layout (added - v0.0.5-003)
- Add Update notification (added - v0.0.4-u)

- Disable Update notification option for config (added - v0.0.5-003)


Bugs, Questions and problems?

Write me an E-Mail or rise a Ticket(German and English, other languages I will translate with google) [email protected]

Known bugs/issues (Version 0.0.1):
- Sign Update on rightclick is faster than a player join

- High CPU usage on low Sign update rate example: 2 seconds

I used/copied some code from here: https://github.com/rmmccann/Minecraft-Status-Query

Similar projects

Plugin →