LoginPremium
LoginPremium
Loginpremium has been made purely to handle everything that comes with login and logout.
I have created this plugin because i could not find a proper plugin to handle everything at once.
And others did just too much, so it gives more lagg.
All versions compatible with all minecraft versions!
Commands
- /Loginpremium or /lp - Base command of the plugin
- /loginpremium reload or r - Reloads the config from disk, If you have made changes, but not ingame.
- /loginpremium set or s- Base command of the set function. This will show all options
- useprivateloginmessage - Accepts true or false. Defines if the private login message will be send
- usepublicloginmessage - Accepts true or false. Defines if the public login message will be send
- usepubliclogoutmessage - Accepts true or false. Defines if the public logout message will be send
- usesendmessageiflessthensetplayerson - Accepts true or false. Defines if all public login/logout messages will be send if server has less then a defined amount of players on. (typing "usesendmessage" is enough :). stupid long word
- kickoverride - Accepts true or false. Defines if the kickoverrride will be used
- overridekickmessage- Accepts true or false. Defines if the default kick message will removed/overwritten
- overridemessages- Accepts true or false. Defines if the default login/logout message will removed/overwritten
- kickmessage - Will set the kickmessage to anything you set after this.
- MessagePublicLogin - Will set the Public login message to anything you set after this.
- MessagePrivateLogin - Will set the Private login message to anything you set after this.
- MessagePublicLogout - Will set the Public logout message to anything you set after this.
- spawn- Will set the spawn location for joining players to your current.
- usespawn- Accepts true or false. Defines if a joining player is beeing teleported to a location
- sendlogincap- Accepts numbers. Defines the maximum players for usesendmessageiflessthensetplayerson beeing used.
- default - Sets the config to its default values(like the first time you started with this plugin
- /Loginpremium + anything else - Will show the default Info message
Examples:
"/loginpremium" - This will show you the default info message if you do not have the permissisions, will show a help message if you do"/lp s kickoverride true" - This will set the value of kickoverride to true, and this enable kick override for those with permission
"/lp set default" - This will set theconfig file to its default state, and loads those values into memory
"/lp set MessagePublicLogin &4Welcome <player> to our server!" - This will set the public login message to "Welcome [yourname] to our server!", in red
"/lp reload" - Will reload the config from disk, discarding any changes made in memory.
usesendmessage "/lp s usesendmessage true" - Will set usesendmessageiflessthensetplayerson to true. use this as a shortener :)
Permissions:
- loginpremium.*
- Allows user access to every loginpremium command
- loginpremium.loginmessage
- Sends the login message from the player to the entire server
- loginpremium.loginoverride
- Makes the player able to login when the server is full
- loginpremium.reload
- Makes the player able to reload the config file with /lp reload
- loginpremium.set
- Makes the player able to set stuff in the config file ingame with /lp set [xx]
- loginpremium.use
- Defines if the user is allowed to see anything else then then info message. Give this to anyone you want to be able to reload or set
Config tags:
Core:&[colornumber] for colors
<name> = The name of the player.
<nickname> = The nickname of the player.
<xplevel> = The XP level of the player.
<world> = The world the player spawns in.
<ip> = The player his IP.
<op> = IF the player is OP.
<maxplayers> = The server's max players
<whitelisted> = If the player is whitelisted.
<motd> = The server's MOTD.
<space> = Places a space here if the character before this is no space
<viewdistance> = The server his view distance.
Vault or permissionsEX :
<prefix> = the prefix of the player in its current world
<suffix> = the suffix of the player in its current world)
<prefixcolor> = the color of the player's prefix
Factions :
<title> = the title the player has in his faction
<tag> = the tag from the player his faction
Towny:
<townname> = returnrs the real town name
<towntag> = returns the tag of the town
<towntitle> = return the title of the player in the town
<nationname> = the name of the nation
<nationtag> = the tag of the nation
<surname> = the surname of the player
<friendsonline> = get a list of townly friends online
Heroes:
<heroclass> -> The name of the class this hero is using
<herolevel> -> The level of this hero
<mana> -> the amount of mana this hero has
<mana%> -> the percentage of mana this hero has left
Images/screenshots:
This is a message you could see if you have configued it like this: "<prefix><name><prefixcolor> has logged in"![](http://imageshack.us/a/img546/8069/loginlogoutmessages.png)
This is the default info message: Yes shameless advertising for my own server :3
![](http://imageshack.us/a/img801/7160/defaultmessage.png)
This is a kick message you could see if you have configued it like this: "&4Server is full unfortuantely :( &f- &6Please try again later!"
![](http://imageshack.us/a/img15/5131/kickmessage.png)
This is the message which you can see if you typ /loginpremium set, or /loginpremium set j7g3jygjygjj (random things)
![](http://imageshack.us/a/img40/4791/availableoptions.png)
TODO
- Allow < [text="" here]=""> to be used inside a message. It currently gets removed.
- Allow multiple lines using /n
- Fix further, and still unknown, bugs
- Ideas?
@deleted_7536780
No idea, I will look into it, and update the plugin :)
Why does this overide CountryLoginMessag plugin when i've got login messages disabled on your plugin?
Any where is the perm for the logout message?
@MinecraftAdmin
File uploaded! Waiting for approval.
@MinecraftAdmin
Sure, ill pop an update tomorrow! Sorry i readit this slow, working on a new plugin :)
Awesome plugin! I'm having a problem using it with essentials though. It seems it shows login messages just fine, but it shows logout messages from both the plugin and Bukkit/Essentials on logout. Can this be fixed?