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/
-
View User Profile
-
Send Message
Posted Sep 19, 2014Hello i have a bug founded while i am pinging my server in my client it says A Minecraft Server and a steve head Server info: Running on the spigot 1.7/1.8 protocoll hack where i founded the error?: In my console error log: http://pastebin.com/TmPrnZLC
AND I HAVE PROTOCOLLIB INSTALLED ON MY SERVER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-
View User Profile
-
Send Message
Posted Sep 13, 2014@Qwertyness
Okay thank you Take the suggestion I made about making the players :)
-
View User Profile
-
Send Message
Posted Sep 13, 2014@maximuss92
I assure you, both commands are absolutely necessary.
When manually editing the config, you must use the restart command or the changes are reverted by an internal save.
When editing it by command, you must use reload to fully save the changes to the file.
And you should always use apostrophes, but they are only needed if you have color codes in the MOTD because YAML reads ampersands as special characters.
-
View User Profile
-
Send Message
Posted Sep 13, 2014@Qwertyness
Okay let me get this straight......
When you make edits to the config for example put in a new motd or change the options such as those true and false statements I use the restart command...? Also do I have to put - 'Then' when making an motd like the ' and this - ,is this necessary? Also this goes the same for the player count message.
If this is the case ^
Then what is the purpose for the reload command.I mean how can I make changes to the command the commands already edits by it self.It even edits the config the whole.
Also A cool thing you can do is make it so that you can actually make fake player names and when you press tab it shows there name.Like for example /motd createfakeplayer qwertyness .That would be so fricking cool! XD
Edit:Okay I've just tried what you said didn't work.I think your restart and reload may be the problem only one command is needed bro.Having two commands that just edit the config is just not going to work.Please remove the restart command the reload is already something we have and don't need another command.Why make reload command to edit in-game when I said it already edits even with out reload. Just make the reload command do the restart because I think that the codes are basically just in different text but are meant to do the same thing.Doing the restart command is using the reload they are both meant to affect the config and in-game ONE command is needed.
-
View User Profile
-
Send Message
Posted Sep 12, 2014@maximuss92
Restart is for manual file edit and reload is for command edit. If you use them otherwise, they will not work correctly. If you want a detailed explanation on why, I'd be happy to provide you with such at your request :)
And I will check the help page wording. (I didn't write it ;) )
-
View User Profile
-
Send Message
Posted Sep 12, 2014@Qwertyness
Reload and restart commands don't work as they should.They do nothing only in-game commands take effect.
AGAIN:Check the wording for your /motd help check all of the commands
-
View User Profile
-
Send Message
Posted Sep 6, 2014@maximuss92
Just posted version 1.2.2
-
View User Profile
-
Send Message
Posted Sep 6, 2014@Qwertyness
Please say when you put it up!
-
View User Profile
-
Send Message
Posted Sep 6, 2014@maximuss92
You should be able to change it already, as I have tested this and can change everything in the config without problems. The only problems I had when testing was with the commands.
EDIT: Some attributes of the config system I have never actually laid out are as follows: If you change the actual source config file manually independent from commands, using the reload command will revert the changes. For manual changes, use the restart command. For any command based changes, use the reload command.
As I said though, I did make a lot of improvements in the next build, so it should work better than current anyway.
-
View User Profile
-
Send Message
Posted Sep 6, 2014@Qwertyness
Also for the player count message how it was before in the config that's how I would like it so all I can do is just add some stuff cause I can't change it it does the same thing i mentioned below
-
View User Profile
-
Send Message
Posted Sep 6, 2014@maximuss92
The reload command is bugged out just because of the way bukkit does some of its methods. I really up to this point have not been able to figure out exactly why the code I have now for it acts the way it does, since the code simulates what would happen on a server reload, which does in fact allow the changes to occur. I have also been running into some problems with JVM caching old values instead of recognizing the new, confirmed and saved, config values.
As for the restart command, it has different functionality than the reload command and is meant for a purpose separate from the reload command.
EDIT: I made some improvements to the config read and save system. I am going to do some small testing to make sure nothing broke, and then I'll post the new build.
-
View User Profile
-
Send Message
Posted Sep 5, 2014@Qwertyness
You should really look at your in-game command wording.Restart command isn't necessary. Now about reloading.Lets say you know every time I use commands in-game it changes the config which is good but every time I make changes to the config it doesn't affect the in-game so like I added an motd doesn't change a matter of fact any thing I do to the config it just resets to the default config which is bad.I want in-game commands to affect the config and configurations in the config to affect in-game.Reloading will reset it and to be honest I HAVE to reload it for it to work even when I restart my server it doesn't work.
-
View User Profile
-
Send Message
Posted Sep 3, 2014@maximuss92
It's up. I posted the changelog under the BukkitDev 1.2 file's changelog. Also check the description for the custom variable tutorial link.
-
View User Profile
-
Send Message
Posted Sep 3, 2014@Qwertyness
Good when you post it ill contact you as soon as possible if any bugs are found :)
-
View User Profile
-
Send Message
Posted Sep 3, 2014I'm posting a new version on that Latest Builds link. It contains a few fixes and a rework of the config system in attempt to improve the reliability of the reload and restart commands.
Please tell me if you find any further problems, and Ill release another update!
-
View User Profile
-
Send Message
Posted Sep 3, 2014@Qwertyness
Okay good make sure to post a commenting saying you've added the new version and fixed the bugs.I was trying out a little coding I made the playercountmessage and the random motds but I couldn't get variables so I gave up :( I bet it was easy to make the variables I just needed time but with all the school stuff it was kinda mixed up .
-
View User Profile
-
Send Message
Posted Sep 2, 2014Hey, I know this is mainly a MOTD plugin, but could you maybe add a custom whitelist message as a feature? That would be awesome.
-
View User Profile
-
Send Message
Posted Sep 2, 2014@maximuss92
As far as the variables, I wrote a tutorial page that I am going to post when the new version appears on BukkitDev.
I didn't have a lot of time to test the new version, so I posted it as a beta release in expectance of errors. That variable iteration thing was a troubleshooting thing I did and just forgot to remove. The fact that the MOTD change commands aren't compatible with multiple MOTDs is just because quite frankly, I completely forgot about the commands :D.
I'll get to work on the bugs and post a bug release as soon as I can. Thanks for your feedback!
EDIT: I stand corrected, I actually did add in new MOTD commands for the multiple MOTDs thing. I just forgot to update the page.
-
View User Profile
-
Send Message
Posted Sep 2, 2014@Qwertyness
So what I want the plugin to do is make it so i can add and delete motd so like a command like this /motd list to see what you have basically the list will give you a number and when you delete that number you delete the number/motd you want to remove.This is a list of commands that don't work /motd setmotd , /motd seemotd , /motd avatericon.When you do /motd there are double of the commands example two players toggle and two motd reloads.Commands i would like you to add /motd list, /motd add/del<sub> /motd change.Also I keep getting a lot of errors like VariableIteration then it gives me a whole bunch of other errors and every time I add another motd when I reload the plugin/restart my server ,the plugin changes the first motd which is the one that's there now and uses the one I have like where you would normal go to change your motd if you didn't have the plugin the other motds will keep coming but the first changes.Also it takes way to long for me to see another motd.I had to refresh like 10 times before i got another one.Variables in the config are just confusing.Fix everything I said then you'll be good might not need another updating.</sub>
-
View User Profile
-
Send Message
Posted Aug 30, 2014@Qwertyness
Awesome! This is now the best available MOTD plugin available on Bukkit! Nice work!