WebSender Reloaded, ready to help you!
Send a command to your Minecraft server via
DrawWEB or similar web scripts.
- Send command with PHP your Bungee or Bukkit server!
- BungeeCord and Spigot support!
- %100 Customizable config!
- Fast socket system!
- Multiple server support!
- /websender command. Perm: websender.admin
Important: When you install the plugin, make sure to change the password, otherwise the plugin will not work. Also, if you change the websender port, enter a port that is not used elsewhere on your server.
PHP EXAMPLE:
If you downloaded version 1.0.1 or lower, the contents of the folder named “ExamplePHP” in the zip are incorrect, you can download version 1.0.2 or 1.2 to get the correct examples.
If you have already downloaded the plugin and now updated it to version 1.3, please replace the “WebsenderAPI.php” file in your website files with the new WebsenderAPI.php file in the zip, otherwise the plugin may not be able to send commands to your website.
PHP:
<?php
require_once
(
"WebsenderAPI.php"
)
;
$wsr
=
new WebsenderAPI
(
"127.0.0.1"
,
"123dweb"
,
"9876"
)
;
// HOST , PASSWORD , PORT
if
(
$wsr
->
connect
(
)
)
{
$wsr
->
sendCommand
(
"gamemode 1 DrawWeb"
)
;
$wsr
->
sendMessage
(
"hello server!"
)
;
// This method for developers. (This method calling a event for developers)
}
else
echo
"Connection error! Check info."
;
$wsr
->
disconnect
(
)
;
?>
PLUGIN CONFIG:
Code (Text):
socketPort: 9876
socketPassword: 123dweb
senderPrefix: '[WebSender]'
wrongPassword: Incorrect password, please enter it carefully.
wrongData: Please check PHP variables.
succesfullyLogin: Login is successful.
consoleInfo: 'true'
commandPermission: websender.admin
nothavePerm: You not have permission!
pluginReloaded: Websender reloaded!
If your os not Windows, please open port.
Code (Text):
First: login the console.
Step 1
iptables -A INPUT -m state --state NEW -p tcp --dport 9876 -j ACCEPT
Step 2
service iptables save