Hey minecraft community!
If your reading this post, then your probably a java programmer. I need a simple plugin programmed in java-script for my minecraft server, but im not sure how to use java. This plugin would be a simple rank-up plugin that you would have to code when people type /rank-up.
This takes a good knowledge of minecraft and im looking for somebody with experience with coding plugins. If your looking for a little extra cash for making a quick plugins, your reading the right post
Please contact if interested: [email protected]
Hey minecraft community!
If your reading this post, then your probably a java programmer. I need a simple plugin programmed in java-script for my minecraft server, but im not sure how to use java. This plugin would be a simple rank-up plugin that you would have to code when people type /rank-up.
This takes a good knowledge of minecraft and im looking for somebody with experience with coding plugins. If your looking for a little extra cash for making a quick plugins, your reading the right post
Please contact if interested: [email protected]
Cheers,
Scott
isnt there plugins that work basically the same way?
it would be basically permissions
Ok, I just sat down and coded for a bit, I added the commands "/rank-up <player>" (increments target player's rank by 1), "/get-rank <target>" (tells you the targeted player's rank if they have one) and "/set-rank <target> <rank>" (sets target player's rank to 'rank')
all of these commands require you to be opped (I can add in the feature that the sender can only use the commands on targets of lower rank then themselves if you want) and the player's rank is saved in the PlayerEntityMP's EntityData accessibly by using this code
//sender is ICommandSender, target is String
EntityPlayerMP targetEntity = func_82359_c(sender, target); // this can be replaced if you have the entity already (ex. BlockActivated's par1PlayerEntity which is run on a block right click)
NBTTagCompound tag = target.getEntityData();
NBTBase modeTag = tag.getTag("PlayerRank");
if(modeTag == null)
{
//player has no rank
}
else
{
//player has rank, display to sender
int rank = tag.getInteger("PlayerRank");
}
to the best of my knowledge so far (haven't had time to use this with multiple accounts on a real server, just tested it on the 'open to lan' world on my self) the rank setting is persistent for the user.
does this sound like what you wanted? I can link you the files if you want and you can test it out and tell me what else you want/need it to do
it sounds like he wants to make a dumbed down version of permissions where it only keeps track of a rank level, IDK though it did seem a little to easy
Ok, I just sat down and coded for a bit, I added the commands "/rank-up <player>" (increments target player's rank by 1), "/get-rank <target>" (tells you the targeted player's rank if they have one) and "/set-rank <target> <rank>" (sets target player's rank to 'rank')
all of these commands require you to be opped (I can add in the feature that the sender can only use the commands on targets of lower rank then themselves if you want) and the player's rank is saved in the PlayerEntityMP's EntityData accessibly by using this code
//sender is ICommandSender, target is String
EntityPlayerMP targetEntity = func_82359_c(sender, target); // this can be replaced if you have the entity already (ex. BlockActivated's par1PlayerEntity which is run on a block right click)
NBTTagCompound tag = target.getEntityData();
NBTBase modeTag = tag.getTag("PlayerRank");
if(modeTag == null)
{
//player has no rank
}
else
{
//player has rank, display to sender
int rank = tag.getInteger("PlayerRank");
}
to the best of my knowledge so far (haven't had time to use this with multiple accounts on a real server, just tested it on the 'open to lan' world on my self) the rank setting is persistent for the user.
does this sound like what you wanted? I can link you the files if you want and you can test it out and tell me what else you want/need it to do
it sounds like he wants to make a dumbed down version of permissions where it only keeps track of a rank level, IDK though it did seem a little to easy
lol your a good coder
i cant code anything if i tried,
haha naw I'm not that good at modding yet, still working on my first (or i guess second now?) but I had been wanting to learn how to add commands and this gave me the kick in the pants I needed thanks though, always nice to hear I'm doing stuff other people like to! right now I mod just because I wan't to customize minecraft more than some mods let meoh and I messaged the original poster the link to my basic version and the finalized command usage, here it is if anyone is interested and I am adding more to it today (gonna have doors and chests that require a set rank to access as well as buttons, levers, pressure pads and trip wires! I got really excited about the possibilities!!!)
here is a link to the test version I made. Commands added (must be run on a server obviosly and as OP): /rank-up <target> /get-rank <target> /set-rank <target> <rank>
If your reading this post, then your probably a java programmer. I need a simple plugin programmed in java-script for my minecraft server, but im not sure how to use java. This plugin would be a simple rank-up plugin that you would have to code when people type /rank-up.
This takes a good knowledge of minecraft and im looking for somebody with experience with coding plugins. If your looking for a little extra cash for making a quick plugins, your reading the right post
Please contact if interested:
[email protected]
Cheers,
Scott
isnt there plugins that work basically the same way?
it would be basically permissions
all of these commands require you to be opped (I can add in the feature that the sender can only use the commands on targets of lower rank then themselves if you want) and the player's rank is saved in the PlayerEntityMP's EntityData accessibly by using this code
to the best of my knowledge so far (haven't had time to use this with multiple accounts on a real server, just tested it on the 'open to lan' world on my self) the rank setting is persistent for the user.
does this sound like what you wanted? I can link you the files if you want and you can test it out and tell me what else you want/need it to do
it sounds like he wants to make a dumbed down version of permissions where it only keeps track of a rank level, IDK though it did seem a little to easy
lol your a good coder
i cant code anything if i tried,
here is a link to the test version I made.
Commands added (must be run on a server obviosly and as OP):
/rank-up <target>
/get-rank <target>
/set-rank <target> <rank>
link is https://mega.co.nz/#...oBV0XW8JfEmooMs