promotional bannermobile promotional banner

Faction Web Linker

This plugin allows you to get information from faction plugin and create a local web server to display them
<p>The Factions Logotype</p>

The Factions Logotype

Description

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

  1. Create a backup of your server first !
  2. Just put the plugin in your plugin folder.
  3. Restart your server.
  4. Open FactionLinker configFile.
  5. Set localweb.active to true (change port if you want).
  6. Set servername.
  7. Restart your server.
  8. Then go on http://yourip:port

Local Web demo

Simple PHP demo

Exemple:

Exemple

Work with

Faction plugin

MassiveCore plugin

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);

The Faction Web Linker Team

profile avatar
  • 1
    Projects
  • 3.8K
    Downloads
Donate