hi guys and girls just want to know is it possible for 1 plugin installed on many servers to share infomation like if a player is online what server and there co-ords IRT, to another player on a different server, that has just logged in. Im just wondering because i have a plugin idea its going to be huge like towny or factions if it works.
You could write a plugin to exchange some information with a custom server using socket, and then have it send that to the other servers, however this would be very compicated to do, and would take a lot of time to write (think 5000+ lines of code) but yeah, its possible it would work like say.. dynmap, where it updates the map realtime with player location etc. however this would send the data in a more direct way, and directly to the custom server
Hello kamakarzy, what you could do is create a Plugin with acts as Client and a Application / Plugin with acts like a Server. And when the Plugin is Loaded: connect to the Server and Request or send the Informations you need. you also may take a look at that: http://docs.oracle.com/javase/1.4.2/docs/api/java/net/ServerSocket.html http://docs.oracle.com/javase/1.4.2/docs/api/java/net/Socket.html http://systembash.com/content/a-simple-java-tcp-server-and-tcp-client/ http://www.oracle.com/technetwork/java/socket-140484.html //Edit: i got ninjad...
well this is what i was thinking name: families Fetures: add you familly members with commands like /familly add brother <playername>, /familly add sister<playername>, after your family was set up every person in your family get a special nametag by /family set nametag smith now all family is got nametag <playername> , smith if a family member is on a different server with families they still keep there smith family name and if another smith logged in on a different server they would get a message " your sister <playername> is on server ip <server ip> at location <player location> either 1 of two things happens it can either hook into towney or have its own plot based plugin but you can claim land for your family and build a kingdom. theres alot more to add in future but im need to figure out am i making it a real life based or rpg because if its rpg you could marry off people in your family to someone elts's to grow the family or mybe just have it configurable and instead of family make clans it could tell you where your clan is what server does this sound even remotely possible or does it sound like i need a team of devs and 2 years to make it ?? also if any devs do think this is a good idea and want to contribute in any way please dont be shy EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Why not make in php a $_GET[] with player name and use a http request in java to store it in that way? You only have to check on regex when a post like that gets called so they cant use evil code in the query. Its usefull because not every mysql server can be direct accesed so by using $_GET you can. Other hand you can also use mysql in java if mysql accept the connection. Edit for $_GET you need to have php experience Code: Public function getContent($username) { $username = strip_slashes(mysql_real_escape_string($username)); $query = mysql_query("SELECT * WHERE username = " . $usernane . ""); if(query) { $args = mysql_ferch_array($query); While($args) { Echo "info about " . $args[username] . ""; Echo "played on: " . $args[server] . ""; } } else { echo "no user found"; } } Just use this function when somebody used a $_GET as example from the plugin call Its along tine ago I used php, I dont know how to read urls but this is a way, to use backlinks About the function I dont know if it works because its a while ago I made something in php