Hi. I had an idea to that when the server is pinged by a users IP, it would mean that they have added the server to their favorites. If it is possible to make a plugin that runs a command when this happens that would be great. If anyone can do this for me, that would be really awesome. Thanks.
There's an event for that. What specifically were you wanting it to do when it is polled by a player?
skore87 I wanted it to give them some sort of reward. Like a diamond or something such as that. If possible a any type of command with their name. Such as "/rank %player% Member" or "/give %player% 264 5"
Okay, so you want the plugin to proxy a command, and not actually do the act (e.g. modifying inventory), when they join right?
Sorry, for some reason I don't quite understand the idea... Would someone be able to dumb it down? When a player logs on, it is added to their favourites?
From what I understand: For each IP address that queries the server (from favorites list), call a command one time for the player when they join the server.
Unless I am a complete simpleton, what is the point of it? What does the command help? If the player logs on, they get an item?
Pretty much, or whatever configurable command you want to call. Same principle as votifier, but less significant.
That's why you only award the player onJoin when you compare usernames, not only IPs. The IP is the only piece of identifiable information you get from the query event so you must use that to compare on the join.
Okay, and BTW i would add a Time, a time so that you don't directly recive it, but if its in your server list for e.g. 2days
Yup, a scheduled cleanup would be necessary for fast execution and most of the users that join wouldn't be using a static IP anyway. But... if I used SQLite and recorded, with associative tables, the IP address and Usernames a simple query could be done to see what IP addresses a given user has used or what users have used a single IP.
This discussion sounds awesome. Just to clear things up... people would want this plugin because it benefits the server by making users actually come on the server more than once and stay updated with the server. We need to get them off of direct connect before they forget about the server and never come back on. skore87 Thanks for answering all the questions. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I'll have something done tonight. It isn't going to be feature rich, however it will get the job done. I'll add a "commands" file so you can call custom commands. I'm not going to bother placing it on my dev profile (it's inactive anyway) since this is likely only to be used by you anyway.
Okay, I have a beta available for you to download. The source is included in case you get curious. If it catches an error it will make a file for it. If that happens, let me know what it said in the file and I'll get you a fix. There is no config or commands though there is a command list (commands.txt) that you will have to edit. Possibly in the future there could be more features to this, so I made the database in a simple way to reflect that by making associative tables. Let me know if you need any help setting it up. Made a bug fix on duplicate IP's. Download URL is the same. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
When running a command, what do I use to represent the player? Would it be %player%? Nevermind. I hadn't looked at the config yet. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Yeah sorry about that, I didn't make it explicit in the instruction but just use %player% in place of the player's name.
skore87 I was wondering if you could add a message of choice (possibly changeable in the config) to inform the players who have yet to add the server to their favorite, that comes on periodically. I was also wondering, if it wasn't to hard, to be able to use colors in this message. If so that would be great. Thanks.
I had another derp moment... Serious flaw and I'm correcting it right now. I'm also adding in the request you're asking as well. There will be a tiny config file now for the delay. I can move the messages and commands into the config, but for right now it'll be separate until I have a little more time. Okay, plugin is updated to v1.2b and is available at the same address. I fixed the major oversight I had and added your request. Everything configurable is in the config.yml. There's a few things I've got to check to see if it isn't a bug, but this should still work for you. I'll make another post tonight after class if I have to change anything. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
skore87 I can't find a plugin that will allow me to simple stop all items from being on the floor in a single world. They all are either for all worlds or just don't work. Could you help me out on this one? I don't mean to bug you. Only if you already know.
Yeah that'll be very simple. I can just make a simple schedule task to do a cleanup on the selected worlds (the lazy way) or track multiple events to cancel the item drop completely. Depending on the application you want it I would use either one or both.
skore87 Which ever one would be less laggy. But it should be that there's never items on the ground. So the schedule would have to be quite rapid.