Magic

Magic

190k Downloads

Common player files for 2 separate servers

Blamo27 opened this issue · 5 comments

commented

Hello,

Is it possible to link the player files of Magic for 2 separate servers ? We want those files to be common to the 2 servers we have (both PVP and PVE). These are not mirror servers, but two different servers that requires Magic player files to be linked. Maybe you could add SQL backend...?

Thank you.

commented

Probably not anytime soon, though there is a framework in place for you to add your own data handler if you'd like to set it up yourself:

https://github.com/elBukkit/MagicPlugin/blob/master/MagicAPI/src/main/java/com/elmakers/mine/bukkit/api/data/MageDataStore.java

You can implement that interface, and then add your player data handler to your configs like this:

player_data_store:
  class: com.mystuff.magic.MagicDatastore
  # You can add parameters here that will get passed into your data store, if you want
  folder: data/players

Your other option is to use a NAS (or some other network file store that you can mount on each of your servers) and symlink the Magic/data folder on each server to the one central store.

commented

I think the first option is good, but I believe you misunderstood me : we have two separate servers, but on the SAME machine, so I don't think that a NAS would be useful. Therefore, I wanted to know if there was a possibility to put the Magic data on a folder stored on the machine (example : /home/magic/data/...).

commented

Oh- ok, yeah that's much easier!

You can either just symlink all the data folders to the same place, or you can customize the built in one- it takes a "folder" parameter, so you could have them all point to the same folder.

Thanks,

  • Nathan

On Nov 20, 2016, at 2:35 PM, Dr_Blamo [email protected] wrote:

I think the first option is good, but I believe you misunderstood me : we have two separate servers, but on the SAME machine, so I don't think that a NAS would be useful. Therefore, I wanted to know if there was a possibility to put the Magic data on a folder stored on the machine (example : /home/magic/data/...).


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

commented

@NathanWolf
Sorry for the big delay. How can I do to specify that the folders are located outside the plugins folder and outside the server, knowing that the user has access to the folder ?
I tried with the following setting : ./home/.../

commented

I managed to do what I wanted to do by using mount.