Faction Web Linker
Faction Web Linker
Warning: In configs files plugin's, php port is 8020.
In Faction.php port by default is 8580.
You have to match them !
Description
With this plugin you can grab informations from Faction plugin and send them on your web server. This will allow you to classify factions, players etc ... directly from a web page!
A web page can be created automatically on http://yourip:8090
Simple usage for Administrator
- Create a backup of your server first !
- Just put the plugin in your plugin folder.
- Restart your server.
- Open FactionLinker configFile.
- Set localweb.active to true (change port if you want).
- Set servername.
- Restart your server.
- Then go on http://yourip:port
Exemple:
Work with
CraftBukkit 1.8
How to install this ? (for dev)
Simply install the plugin on your server. Activate php in config file
Then install and use php files on your web server as in the example.
You can display
- The name of faction
- The name of the faction leader
- The number of player in the Faction
- The faction description
- The current power of the faction
Exemple:
<?php include 'faction.php'; $liste = faction::getAll(); foreach ($liste as &$faction) { $name=$faction->getName(); $desc = $faction->getDesc(); $lead = $faction->getLeader(); $players =$faction->getPlayers(); $power = $faction->getPower(); echo $name."</br>"; echo $desc."</br>"; echo $lead."</br>"; echo $players."</br>"; echo $power."</br>"; echo "----------</br>"; } ?>
Your minecraft server and your website can be different.
If they are different please change "localhost" in faction.php by the ip adresse of your minecraft server. Port must be the same as config file "8020".
$fp = @fsockopen("localhost", 8020);
-
View User Profile
-
Send Message
Posted May 5, 2016Hi i get this on this link how can i remove this innloggin
https://gyazo.com/814cbe5d904357c2d9bdd6cb5375b61a
https://gyazo.com/13ea75bb037e783af0290abe2fd99f67
-
View User Profile
-
Send Message
Posted Dec 4, 2015Bonjour, Comment puis-je effectuer un classement selon une des colonnes? Par exemple afficher le tableau classé par power.
-
View User Profile
-
Send Message
Posted Oct 17, 2015@quequiere
je shouaites ajouté et modifié un niveaux du SQL
-
View User Profile
-
Send Message
Posted Sep 27, 2015@LgRmael40
Que souhaites tu ajouter ?
-
View User Profile
-
Send Message
Posted Sep 27, 2015@Pyvesb
Tu peux modifier l'entete facilement. Le Php qui gère l'affichage est dans le Jar du plugin. Ouvre le avec 7zip par exemple.
-
View User Profile
-
Send Message
Posted Sep 26, 2015Bonjoour à quand la 1.1.0 :) et possible d'avoir le coude source
-
View User Profile
-
Send Message
Posted Aug 3, 2015Bonsoir !
On est en train de tester ce plugin sur notre serveur! Ça a l'air assez prometteur et bien ficelé ! Beau travail pour ces premières versions bêta. ;)
Quelques idées d'ajouts qui pourraient nous être bien utiles :
- prendre en charge les codes de mise en forme (http://minecraft-fr.gamepedia.com/Codes_de_mise_en_forme). Par exemple si une faction est écrite en italique en jeu, actuellement le plugin affiche §oNomdelafaction sur l'interface web, c'est assez génant.
- avoir la possibilité de modifier l'en-tête globale de l'interface web (le "Online faction information par exemple").
- avoir la possibilité de modifier le fond d'écran de l'interface web, et l'image par défaut devant les factions.
- avoir la possibilité de rajouter des séparations entre les pseudos des membres d'une faction.
Un bug trouvé :
- le fait de définir un port autre que le 8090 semble ne pas marcher.
Merci d'avance ! ;)
-
View User Profile
-
Send Message
Posted Jun 30, 2015@LgRmael40
Added in the 1.1.0 version
-
View User Profile
-
Send Message
Posted Jun 29, 2015Add les members pls :)