Hi!
Here is my method I'm playing with at the moment.
I need to get the players UID from their textual name ( it will then go to a SQL statement ).
I'm really quite stuck on how to do this?
Hi!
Here is my method I'm playing with at the moment.
I need to get the players UID from their textual name ( it will then go to a SQL statement ).
I'm really quite stuck on how to do this?
use Player player = getPlayer(java.lang.String playername) and then player.getUID()
Perfect thanks Minotorious! Hmm actually still struggling.
Player p = getPlayer(String player); //doesnt work
Player p = getPlayer(player); //doesnt work
Player p = getServer().getPlayer(player); // i think this works!
oh yeah sorry the getPlayer method is under the Server interface so it should be written like this: getServer().getPlayer(String Name);
ops sorry for confusing you
hehe I think we both got there are the same time!
Don't suppose Minotorious you know how to either keep an GuiImage to bottom right of the screen? I've tried but when I change resolutions to test it the image shifts to the left or the right. I'm guessing I need to somehow get the players screen resolution somehow and then move the GuiImage accordingly.
( I'm sure others will find my relentless questions useful too )
hmm did you use relative positions to place the gui? because relative positions should in theory adjust automatically to resolution changes
That's what I've done. I'm trying to add an image to left of the "knife and fork" icon. With those settings looks perfect for 1024x786 soon as I go up to my native 1920x1080 the icon shifts much further to the left away from the food/water icons.
(trying to make my GUI as unobtrusive as possible)
Well thanks anyway Min, at least I can crack on with the friends db now.
Just to illustrate the GuiImage
hmm another thought what if you use absolute positions to place it? what happens then does it move on different resolutions? (though in the non relative case you might have problems with different screen sizes giving different positions worth a try if you got time )
Yeah that's why I was hoping I could maybe get the users resolution and then set it accordingly "on the fly". I'll keep having a play and I'll let you know if I crack it.
Don’t have an account yet? Create a new account now and be part of our community!