SexyMotd
SexyMotd
THE BEST Motd plugin on BukkitDev
SexyMotd for BungeeCord servers has been released on Spigot! Search "SexyMotdBungee" on the SpigotMC site to find it!
SexyMotd v1.4+ can be found on SpigotMC!
Features
- Change motd easy and quick with in-game commands (1.2.2 and earlier)
- Colored motds
- Fake online players
- Fake max players
- Player's IP logging
- Display player's name with %playername% (done with IP logging)
- Display server's name with %servername%
- Display online players with %online_players%
- Display max player slots with %max_players%
- Skip to the next line of motd with %newline%
- Display server's version with %version%
- Avatar icons (player's face as a server icon) (done with IP logging)
- Overlaying a custom transparent image (.png) over the avatar icon, by providing either a file path, or a URL
- Fake version.
- Custom message on list hover.
- Randomized Motds
- Randomized fake online players
- Custom variables!!
- %newplayer%, %banned%, %whitelisted% Boolean variables (for use with conditional/custom variables)
- %groupName% variable (Will require PermissionsEx)
Variables
Variable | Function | Type |
%groupname% | Display the PEX groups that the user belongs to. | Array - String |
%ip% | Display the user's IP. | String |
%maxplayers% | Display the maximum player count from the server.properties. | Integer |
%newline% | Skip to the second line of the MOTD. | \n |
%onlineplayers% | Display the current online player count. | Integer |
%playername% | Display the last known display name from that IP. | String |
%playernames% | Display the names of all players currently online. | Array - String |
%randomplayer% | Display the name of a random online player. Defaults to default guest name in the configuration. | String |
%servername% | Display the server name defined in server.properties. | String |
%version% | Display the server version | String |
Variable Operators:
Variable operators allow you to modify the output of a variable with a special variable suffix.
Integer Variables -
Add a "+", "-", "*", or "/" followed by a number after any integer type variable to apply the operation to it. Example: %onlineplayers%+10
Array Variables -
Add a "[x]", where x is the index within the array, after any array type variable to only display one list item. Otherwise, arrays are displayed as "x, y, z"
Array variables of integer type are not eligible for integer operations after the index declaration.
Example: %playernames%[2]
Config and Custom Variables
SexyMotd 1.2.2 and Earlier
Commands:
Command | Description |
/motd addmotd <motd> | Adds an Motd |
/motd removemotd <index> | Removes an Motd |
/motd listmotds | Lists the Motds |
/motd maxplayers toggle | Toggles the FakeMaxPlayers |
/motd toggle | Toggles the SexyMotd (Note: your server will NOT look sexy if you disable it! :) ) |
/motd maxplayers set <number> | Sets the FakeMaxPlayers |
/motd players add <number> | Adds an online player number. |
/motd players remove <index> | Removes an online player number. |
/motd players list | Lists the online player numbers. |
/motd avataricon | Toggles the Avatar Icon (player faces as server icon) |
/motd info | Displays the info |
/motd reload | Reloads the config. |
/motd restart | Restarts the plugin. |
SexyMotd 1.2.2 and Earlier
Permissions:
Permission | Command/Action | Default |
sexymotd.set | /motd <subsection>motd(s) | OP |
sexymotd.toggle | /motd toggle | OP |
sexymotd.maxplayers.* | /motd maxplayers | OP |
sexymotd.maxplayers.toggle | /motd maxplayers toggle | OP |
sexymotd.maxplayers.set | /motd maxplayers set | OP |
sexymotd.players.set | /motd players <subcommand> | OP |
sexymotd.avataricon | /motd avataricon | OP |
sexymotd.info | /motd info | All |
sexymotd.reload | /motd reload | |
sexymotd.restart | /motd restart |
Disclaimers
This plugin uses the Minotar service to display player avatars as the server icon.
SexyMotd v1.2 and earlier: In order to provide information about new updates, this plugin uses Gravity's auto updater service to query dev.bukkit.org for new updates. Updates are not automatically downloaded, but can be downloaded with the /bm command or by clicking the provided link when an update becomes available. Update warnings can be disabled by setting the CheckUpdates section in the config to false.
SexyMotd v1.2 and earlier: We use PluginMetrics by Hidendra to collect data about the servers running SexyMotd. This data is packaged and sent to report.mcstats.org in order to be processed. The following data is collected from your server:
- Your servers unique metrics id.
- The version of PluginMetrics.
- Your server's CraftBukkit version.
- Player count.
- Your computer's operating system.
- Your computer's arch type.
- Your CPU's core count.
- Your server's online mode state.
- The version of java you have installed.
Metrics can be disabled by changing the opt-out section in plugins/PluginMetrics/config.yml to true.
REQUIREMENTS
This plugin REQUIRES ProtocolLib in order to function! You can get it here: http://dev.bukkit.org/bukkit-plugins/protocollib/
The server still isn't registering the motds even when i use the config...
@thebiggestM42
There have been some problems with the variables updating when you use commands. For now, modify it with the actual config and that should work.
How do I set the motd then? I have tried adding them and removing them so that there is only the one I created, but it shows the default motd, even though SMotd is enabled, both parts.
@thebiggestM42
The /motd setmotd command is no longer part of the plugin. Check the description for the command list.
I have version 3.4 of ProtocolLib and 1.2.2 of SMotd. I can't do the /motd setmotd command though. I do have full OP permissions.
@thebiggestM42
It should as long as your build of ProtocolLib is compatible with SMotd and the server.
Does this work with 1.8.3 servers?
@Qwertyness
Awesome!
The plugin has behaved normally for the last 2 days without any need for a restart. What particular event could have caused that crazy console spamming?
@EarlyReflex
I think I found and fixed the problem. I will release the new build soon.
@Qwertyness
There is no occurence of either of these in the config. For now it seems to behave good after a server restart. I keep my fingers crossed in hope it won't happen a 3rd time! :)
@EarlyReflex
For now, remove all occurrences of %banned% or %whitelisted% from your config. That should solve the issue. I am looking further into the problem now.
Unfortunately, I had to remove this from our server. It was spamming megabytes of errors in console, totally bringing the server down.
Here's a 10 seconds sample:
http://pastebin.com/dM718E00
I think it might not be very happy with Spigot 1.8 :(
@Qwertyness
I tried with another motd plugin and I got the exact same results. It's either a; both plugin have the same issue, or b; it can't be done...
I hope it's "a"!
@EarlyReflex
That is strange. Java should automatically change that to the character. I'll do some research on it.
@Qwertyness
Here's what I tried in config:
And \u2622 was all I got in server list motd! :D They should work with color codes too like in "&a&l\u2622".
And btw, this is in Spigot 1.8 so it might be related.
@EarlyReflex
Did you use any color codes on the text?
@Qwertyness
Yes the output only show the unicode stuff like this: "Welcome to \u2622 ServerName \u2622"
@EarlyReflex
Does the output MOTD contain the Unicode code or is it just blank where the character should be?
This works great!
How can I use unicode characters in motd or playermessage? I've tried something like \u2622 or \x2622 without success.
@Qwertyness
Oh mate! That's awesome :). Can't wait till i can use it on my server!