I'm looking for a plugin for my Network so when a new staff member would join they will have to do /setpin [PIN] and when a older staff member that joins they do /pin [PIN] so people hack there account's they can't grief and that.
Would you be able to do this?If anyone charges you for this they are scamming you unless you want to hash the pins.
Would you be able to do this?
Boolean onCommand(){
if passwordfile.getString(p.getUUID()).equalsignorecase(args[0]){
return;
}else{
p.kickplayer();
}
}
Not quite as simplemas that. The OP will also likely want some sort of custom char message asking the user to enter the pin and also stop the player from moving and running any other command, before using the pin. Its a plugin worth a few $.I don't play minecraft anymore I'm just here to sell my old server but here is some pseudo code
Code:Boolean onCommand(){ if passwordfile.getString(p.getUUID()).equalsignorecase(args[0]){ return; }else{ p.kickplayer(); } }
Not quite as simplemas that. The OP will also likely want some sort of custom char message asking the user to enter the pin and also stop the player from moving and running any other command, before using the pin. Its a plugin worth a few $.
p.SendMessage("supah advanced");
PlayerMoveEvent e
if(unverified.contains(e.getPlayer().getName()){
E.setcancelled(true);
}
PlayerCommandPreprocessEvent e
if(unverified.contains(e.getPlayer().getName() && !command.getname().equalsignorecase("pin")){
E.setcancelled(true);
}
Then you also have to add them to the unverified list based on rank.Code:p.SendMessage("supah advanced"); PlayerMoveEvent e if(unverified.contains(e.getPlayer().getName()){ E.setcancelled(true); } PlayerCommandPreprocessEvent e if(unverified.contains(e.getPlayer().getName() && !command.getname().equalsignorecase("pin")){ E.setcancelled(true); }
Then you also have to add them to the unverified list based on rank.
OnJoin()
if(p.hasPermission("login.staff"){
unverified.add(p.getName());
}
No, now go and compile it and send it to the op.Any other tough questions?Code:OnJoin() if(p.hasPermission("login.staff"){ unverified.put(p.getName()); }
Yah i have a tough question how do i become successful in life?Any other tough questions?Code:OnJoin() if(p.hasPermission("login.staff"){ unverified.add(p.getName()); }
If anyone charges you for this they are scamming you unless you want to hash the pins.
not his job. He gave out the simple, free code online and did his part.No, now go and compile it and send it to the op.
I don't get why he posted the code in the thread instead of compiling it for the OP.not his job. He gave out the simple, free code online and did his part.
I don't get why he posted the code in the thread instead of compiling it for the OP.
I don't play minecraft anymore I'm just here to sell my old server but here is some pseudo code
Code:Boolean onCommand(){ if passwordfile.getString(p.getUUID()).equalsignorecase(args[0]){ return; }else{ p.kickplayer(); } }
Thanks Hunting, How is Minecorner?Use this https://dev.bukkit.org/bukkit-plugins/staffsecure/
It encrypts all the passwords aswell.
