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, Velocity or Bukkit server!
- BungeeCord/Velocity 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.
Configuration for Plugin v1.5+ (Important)
If you have installed version
1.5 or higher, you must configure your
Code (Text):
WebsenderAPI.php
file according to your server's Java version. Please follow the steps below.
Step 1: Update the WebsenderAPI.php File
- Open the .zip archive you downloaded for the plugin.
- Find the WebsenderAPI.php file located inside the ExamplePHP folder.
- Replace the existing WebsenderAPI.php file on your website with this new one.
Step 2: Set the Encoding Type (encodeType)
Open your updated
WebsenderAPI.php file with a text editor. At the top of the file, find the
Code (Text):
public $encodeType
variable and set it according to your server's Java version as shown below.
- If your server is using a version lower than Java 17:
Leave the value as "base64". No change is necessary.
Code (PHP):
public
$encodeType
=
"base64"
;
- If your server is using Java 17 or a higher version:
Change the value to "aes".
Code (PHP):
public
$encodeType
=
"aes"
;
PHP:
<?php
require_once
(
"
;WebsenderAPI
.php
"
;
)
;
$wsr
=
new WebsenderAPI
(
"
;127
.0
.0
.1
"
;,"
;123dweb
"
;,"
;
9876
"
;
)
;
// HOST , PASSWORD , PORT
if
(
$wsr
->
;connect
(
)
)
{
$wsr
->
;sendCommand
(
"
;gamode
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