Yup I'm running around spawning some now.
Yes a simple plugin might suffice for now.
The API calls get a +1 from me!
Yup I'm running around spawning some now.
Yes a simple plugin might suffice for now.
The API calls get a +1 from me!
Hi folk!
So, on a multiplayer server you have loads of people killing the NPCs particularly around the initial spawn point.
Could someone clarify what mechanism spawns new NPCs?
There appears to be a distinct lack of them around the initial spawn point now. One player mentioned that they've only seen 1 npc (a pig) in 24 hours!
A very good point there!!!
LOL something on par to skinning a cat.
hi guys, I've already written that part of the program using the UID for owner and friend. So I'll have to leave it as it is (far too much on my plate to rewrite code that already works). I was just trying to work out how someone could easily remove a friend.
Min, you're probably right not to include the UID string in the output. Maybe have an extra field in case the users wants to see this like:
/list friends showuid
General question but why do you want to implement an in-server friend list? Isn't the steam one sufficient? I understand that standalone users cannot benefit from the steam one but still think it is too much effort with no real benefit for most users.
Hi Minotorious,
I'm writing a chunk protection program.
My `Friends` database consists of (ID, OwnerUID, FriendUID) - very similar to the same as what you've suggested.
Your point 2 sounds good to list the friends and then possibly have a "shortcut ID" created on the fly to remove the friend from the list, rather than the user having to type in the whole UID.
Something like,
/list friends
8023098235768907230572 last known name Bob (ID: 1)
8237592385682375872387 last known name Jane (ID: 2)
/remove friend 2
CHEERS!
It is a tough one. I'm wondering if there is some way to grab the steam user name or something, or, possibly have some means to determine if, and when a username was changed. Something like, "username was changed 64 days ago" or "username was changed 5 hours ago".
Going to require quite a bit of thought before implementation.
A small server update was released. Maybe it's necessary to tweak the server_query setting again (only if your server does not show up in the list!). Here is an explanation what the server_query_ip setting does:
now get some sleep!
I'm still having problems getting server to show after update. X/ I see this at the end of the startup script log
OK I'm going to try a complete clean install tomorrow and reconnect to the world database - I'll let you know how it goes!
Yep, I'd love to see the ability to zoom out of the map further!
(I'd also like to see an increase in block view distance!)
OK, so I've got a database running that stores a players "friends" list. Using the chat command /add friend PlayerName this gets the players UID with;
Player p = getServer.getPlayer("playername");
String friendUID = (String)p.getUID();
(or something like that!)
Here comes the perplexing part!
Now say the players "friend" goes off and destroys their stuff whilst they are not online. When they next login they want to remove the player with something like /remove friend PlayerName now clearly this is only going to be possible *if* the "bad" player is logged in at the same time to enable the server to work out the UID.
Now, I could execute this with a command such as /remove friend PlayerNameUID (like 28372728294828282) but that's going to be very difficult for a user to do.
Can anyone think of any magic way to make this easier?
(I'm half way thinking a GUI is going to be the only way. . .)
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.
Well thanks anyway Min, at least I can crack on with the friends db now.
Just to illustrate the GuiImage
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)
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 )
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!
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?
I'm still having problems getting server to show after update. X/ I see this at the end of the startup script log
at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403)
properties file
OK this is weird. I had to do this a few times to check I wasn't going mad. I checked that the properties file had the line "server_query_ip=-1" in it, when the server runs, you look back at this file and the line has been removed.
Unfortunately there is no way to add new options to the dialog, but this would be a great idea! Maybe post this in the API suggestion section so this feature does not fall into oblivion
![]()
Done that Red
Thanks for your reply.
On another note, what does "invite to group" actually do? I've played around with it but it doesn't seem to do anything?
<----- me