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"This is the default info message: Yes shameless advertising for my own server :3
This is a kick message you could see if you have configued it like this: "&4Server is full unfortuantely :( &f- &6Please try again later!"
This is the message which you can see if you typ /loginpremium set, or /loginpremium set j7g3jygjygjj (random things)
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?
thanks much for that! since it was cancelling it or whatever before i was havig to have 2 plugins welcome players to the server which was rather irritating, one just to take care of IRC sadly.
@moose517
Hey sorry for the late reply ;)
override will be changed once again. A new file is pending approval, wait for it to see the full changelog.
If you enable override, the default login message will be changed to what you defined, so no IRC problems. If you disable this, the default message will get broadcasted AND the custom one will too.
Again, i apologize for the late response :(
when the overriding of messages is done, are you cancelling the event entirely? if so please don't as your keeping plugins like craftIRC from getting that message at all and i never know that someone logged in or out.
New update is pending approval! This includes Heroes Compatibility, and the code is rewritten for faster speeds!
@Kevinzuman22
and stop stalking my plugins xD
@Kevinzuman22
If you install the plugin Vault, your permissions features will work as expected
Please add a GroupManager support! I would love that, because I never use PEX.
@Geshsi
No, it will allow him ABOVE the limit. BUut that accutally is a nice idea. Ill make it kick someone without the rank/permission (Toggle-able)
I need some help to understand how it works. Let's say the server is full, and a donor may log in although the server is full. But when the donor logins would it kick someone with a lower rank then?
@mattrick16
A problem with this is some plugins modify the spawn, like Multiverse and essentials. I cannot know that :/
@moose517 @mattrick16
Will do!
Suggestion: Make support to where you teleport to the main server spawn point upon login.
Would it be possible to add an option to not cancel the default login message? Reason i ask is i use craftIRC and with this i no longer see login/quits on IRC
Suggestion: Towny support
You need a setup video
Uploaded version for 1.5 Awaiting approval.
@uSoc_lifehome
It doesnt work? let me test that!
@kwek20
Sorry to be rude, but any update for 1.4.7?
@Phaze_One
Yes, i semi-maintain it. I currently just fix bugs and update it for minecraft. But if you have any suggestions, please tell me!
Is this being maintained? I hope so, if it is it's really the only one. I'd like to use this.