/reset name
works but has to be lower case only though
/reset Name
dose not work.
/login pass
/register pass
Produces Unkown Command
at the end after you register or login
and get this error.
[SEVERE] Exception while calling plugin function
java.lang.NullPointerException
at MineSecurity.onCommand(MineSecurity.java:387)
at PluginLoader.callHook(PluginLoader.java:227)
at id.d(id.java:351)
at id.a(id.java:322)
at ba.a(SourceFile:24)
at bb.a(SourceFile:218)
at id.a(id.java:43)
at dc.a(SourceFile:85)
at net.minecraft.server.MinecraftServer.h(SourceFile:264)
at net.minecraft.server.MinecraftServer.run(SourceFile:205)
at bm.run(SourceFile:480)
and Maybe instead of hard coding the commands
public class Commands extends Plugin {
public void enableCommands() {
/**
* MineSecurity
*/
etc.getInstance().addCommand("/register", "[password] - Register account");
etc.getInstance().addCommand("/login", "[password] - Login to account");
etc.getInstance().addCommand("/pass", "[oldPassword] [newPassword] - Change your password");
etc.getInstance().addCommand("/reset", "[usernames] - Reset registrations, EX: user1 user2");
}
public void disableCommands() {
/**
* MineSecurity
*/
etc.getInstance().removeCommand("/register");
etc.getInstance().removeCommand("/login");
etc.getInstance().removeCommand("/pass");
etc.getInstance().removeCommand("/reset");
}
public void enable() {
enableCommands();
}
public void disable() {
disableCommands();
}
}
/reset name
works but has to be lower case only though
/reset Name
dose not work.
/login pass
/register pass
Produces Unkown Command
at the end after you register or login
and get this error.
[SEVERE] Exception while calling plugin function
java.lang.NullPointerException
at MineSecurity.onCommand(MineSecurity.java:387)
at PluginLoader.callHook(PluginLoader.java:227)
at id.d(id.java:351)
at id.a(id.java:322)
at ba.a(SourceFile:24)
at bb.a(SourceFile:218)
at id.a(id.java:43)
at dc.a(SourceFile:85)
at net.minecraft.server.MinecraftServer.h(SourceFile:264)
at net.minecraft.server.MinecraftServer.run(SourceFile:205)
at bm.run(SourceFile:480)
and Maybe instead of hard coding the commands
public class Commands extends Plugin {
public void enableCommands() {
/**
* MineSecurity
*/
etc.getInstance().addCommand("/register", "[password] - Register account");
etc.getInstance().addCommand("/login", "[password] - Login to account");
etc.getInstance().addCommand("/pass", "[oldPassword] [newPassword] - Change your password");
etc.getInstance().addCommand("/reset", "[usernames] - Reset registrations, EX: user1 user2");
}
public void disableCommands() {
/**
* MineSecurity
*/
etc.getInstance().removeCommand("/register");
etc.getInstance().removeCommand("/login");
etc.getInstance().removeCommand("/pass");
etc.getInstance().removeCommand("/reset");
}
public void enable() {
enableCommands();
}
public void disable() {
disableCommands();
}
}
Okay! My mind is in the gutter today. I made sure everything worked this time!
edit: addCommand() is for the help list, and the help list isn't usable when you're not logged in
From the OP I gathered the 0.5.2 release DOES include /reset? If this is the case, then while the other commands work (register,login,pass), I can't get the server to recognize the reset command.
Everything else is fine - working great :biggrin.gif:
Rollback Post to RevisionRollBack
-TheSeraph "All wars are civil wars, because all men are brothers."
Executive Council, [For the War] Clan
This would make less work for ADMIN to give the power to mods to reset users :smile.gif:
But yeah just an idea.
Hmmmm, sounds cool. That's exactly how it works now. However, I've also made it so the group "admins" can also reset other admins - I presume if someone got enough trust to be an admin they won't abuse that? If you'd prefer a config value to make it so admins can't reset other admins, I could do that
Quote from TheSeraph »
From the OP I gathered the 0.5.2 release DOES include /reset? If this is the case, then while the other commands work (register,login,pass), I can't get the server to recognize the reset command.
Everything else is fine - working great :biggrin.gif:
See the last quote - before it only worked for admins, now it works for anyone who can use the command but they can only reset players who are below them in power.
0.6
[*:3c3ubnfm]/reset is now not only limited to admins. Anyone that can use it can reset users below them in rank. Except the group "admins" can reset anyone. Example, "mods" has /reset. They cannot reset other mod registrations. However, they can reset any group "mods" inherit, ie default and vip.
[*:3c3ubnfm]Minor registration bug fix
Awesome, installed and everything seems to be working, thank you :biggrin.gif:
EDIT: Not sure what's going on, and I would think your plugin wouldn't have anything to do with it - however, after installing 0.6 (later ended up trying with vanilla, other plugins, etc - trying to troubleshoot), we found that items don't seem to want to stay in boxes after a user disconnects. The item is 'there' - when you destroy the containing chest, the item drops in addition to the chest - but doesn't show.
Even with all other plugins installed/uninstalled/any combination, we could only duplicate this problem with MineSecurity added to the server.
Perhaps it has something to do with assigning privileges, etc when a user logs in (that's what we guessed, since with no login everything works fine, so maybe something or other is interfering with the server knowing who it is who is looking in the chest)?
Cheers :smile.gif:
Rollback Post to RevisionRollBack
-TheSeraph "All wars are civil wars, because all men are brothers."
Executive Council, [For the War] Clan
anyways still says unknown command.
/register
/login
etc...
Yes, I did. I'm not even sure, though I'm using the latest version of hey0 and it's working perfectly fine for me
edit: I just uploaded a modified version, try that.. (it's still 0.3.1)
Say i have the name
Test:admins
in users.txt
and its registered
Test:098f6bcd4621d373cade4e832627b4f6
Anyone can log in with say the name
test
tEst
TEst
/register that name
and be ADMIN.
Can you make it so name case dose not matter, it registers only 1 name.
Heh, an oversight. Fixed, thanks
Okay, done. However, in your server.properties, you'll need to add a line that reads:
Then you will be able to register when online-mode is set to false :smile.gif:
0.5
[*:1rxfdwut]Registrations can be enabled when online-mode is false by setting register-offline to true (may need to add a new line)
register-offline=
why not add that "register-offline=false" automatically if its not present in server.prop file.
Then the user can modify it from there.
Just an idea, I dont know just being lazy and dont wanna type it haha.
It does add it, just if you haven't started the server since adding 0.5 it won't be there 'til you start it :tongue.gif:
Not sure if its possible.
When the user is registered, instead of displaying blah blah /register Warning message.
Why not display /login instead.
It does, just my fault for not testing the last update thoroughly first. Redownload
Dose nothing at all.
/reset name
works but has to be lower case only though
/reset Name
dose not work.
/login pass
/register pass
Produces Unkown Command
at the end after you register or login
and get this error.
and Maybe instead of hard coding the commands
Okay! My mind is in the gutter today. I made sure everything worked this time!
edit: addCommand() is for the help list, and the help list isn't usable when you're not logged in
Get the bugs out :tongue.gif:
Besides that, love the script :smile.gif:
Yeah, they shouldn't be there now
ty =)
Here is another idea
/reset <players>
Say add /reset to a given group like, MODS, and they would be able to use the command plus groups Higher then mods.
However, with limitations.
For example, Group MODS wont be able to reset MODS,ADMIN,ADMIN1 and upper groups, only be limited to Builders,vip and so on.
admins1:c::admins:2
admins:c::mods:2
mods:a:/reset:builders:1
builders:a::vip
This would make less work for ADMIN to give the power to mods to reset users :smile.gif:
But yeah just an idea.
Everything else is fine - working great :biggrin.gif:
Executive Council, [For the War] Clan
Hmmmm, sounds cool. That's exactly how it works now. However, I've also made it so the group "admins" can also reset other admins - I presume if someone got enough trust to be an admin they won't abuse that? If you'd prefer a config value to make it so admins can't reset other admins, I could do that
See the last quote - before it only worked for admins, now it works for anyone who can use the command but they can only reset players who are below them in power.
EDIT: Not sure what's going on, and I would think your plugin wouldn't have anything to do with it - however, after installing 0.6 (later ended up trying with vanilla, other plugins, etc - trying to troubleshoot), we found that items don't seem to want to stay in boxes after a user disconnects. The item is 'there' - when you destroy the containing chest, the item drops in addition to the chest - but doesn't show.
Even with all other plugins installed/uninstalled/any combination, we could only duplicate this problem with MineSecurity added to the server.
Perhaps it has something to do with assigning privileges, etc when a user logs in (that's what we guessed, since with no login everything works fine, so maybe something or other is interfering with the server knowing who it is who is looking in the chest)?
Cheers :smile.gif:
Executive Council, [For the War] Clan