(4.10.0 - 4.21.1) 1.3.5 (4.3.0 - 4.21.1) 1.3.4 (4.2.5 - 4.21.1) 1.3.3 (4.0.0 - 4.21.1) 1.3.2 (4.0.0 - 4.21.1) 1.3.1 (4.0.0 - 4.21.1) 1.3.0 (4.0.0 - 4.21.1) 1.2.2 (4.0.0 - 4.21.1) 1.2.1 (4.0.0 - 4.21.1) 1.2.0 (4.12.2 - 4.21.1) 1.3.6 (4.16.0 - 4.21.1) 1.4.2 (4.16.0 - 4.21.1) 1.4.4 (5.4.2 - 5.16.0) 1.5.1 (5.4.3 - 5.16.0) 1.5.2 (5.4.3 - 5.16.0) 1.5.3
This is the official recode of my old plugin WFT, witch had some issues. Overall I was not happy with the result, the code was messy, it was all in one file, there was useless and in-efficient code, with a hard api to use, so decided to recode it.
I have added features, because I felt the plugin needed them, and removed features, as some features where not needed.
Migration: This should have been added on 1.0, but texts from WFT-OLD will now be automaticly migrated to WFT format.
Language support: You can now change the language of the plugin to suit your server.
Display identifier: You can now turn on or off the option to see the texts unique identifier (Much like Texter, but optional).
More tags: Added many more tags for better, they are also player specific.
Per-Player texts: Players will now get a specific text depending on what tag you use.
Packets: The old plugin used entities, putting more load on the server, whereas this plugin uses packets, therefore creating a more lightweight plugin.
Efficient and pretty code: The code in this plugin is WAY more efficient and clean that the old plugin. The code is also spaced out in multiple files.
Status: Fixed
Version: >=1.3.4
Fixed in: <=1.3.5
Status: Fixed
Version: >=1.3.1
Fixed in: <=1.3.2
Status: Fixed
Version: >=1.3.2
Fixed In: <=1.3.3
Master command is ft|wft.master
Subcommand | Permission | Description | Aliases |
---|---|---|---|
wft |
wft.command.use |
The master command | ft |
add |
~ | Add a new ft |
spawn , summon , new , make , create , c , a
|
remove |
~ | Remove a existing ft |
break , delete , bye , d , r , |
edit |
~ | Edit an existing ft |
e , change
|
tp |
~ | Teleport to an ft |
teleportto , tpto , goto , teleport
|
tphere |
~ | Teleport a ft to you |
teleporthere , movehere , bringhere , tph , move
|
list |
~ | See a list of the current fts |
see , all
|
help |
~ | So you can get some in-game help |
stuck , h , ?
|
Tag | Description |
---|---|
# |
New line |
& |
Use for color codes (same as § ) |
{NAME} |
Players real name |
{REAL_NAME} |
Players real name |
{DISPLAY_NAME} |
Players display name (often nick plugins use display name) |
{PING} |
Players Current Ping |
{MAX_PLAYERS} |
Maximum players that can be on the server |
{ONLINE_PLAYERS} |
Currently online player count |
{X} |
Players X Position |
{Y} |
Players Y Position |
{Z} |
Players Z Position |
{REAL_TPS} |
Current server tps |
{TPS} |
Average server tps |
{REAL_LOAD} |
Current server load |
{LOAD} |
Average server load |
{LEVEL_NAME} |
Players current level name |
{LEVEL_FOLDER} |
Players current level folder name |
{LEVEL_PLAYERS} |
Players current level player count |
{CONNECTION_IP} |
The IP address that the player connected from |
{SERVER_IP} |
The servers IP address |
{TIME} |
Current server time (Customisable in config) |
{DATE} |
Current server date (Customisable in config) |
See how to create your own here
But feel free to add your own!
Example:
Import the classes
use WolfDen133\WFT\WFT;
use WolfDen133\WFT\Texts\FloatingText;
Creating the text
// Creation and registration
$floatingText = new FloatingText(new Position($x, $y, $z, $level), $name, $text);
WFT::getAPI()->registerText($floatingText);
// Spawning
WFT::getAPI()::spawnTo($player, $floatingText);
// or
WFT::getAPI()::spawnToAll($floatingText);
Changing the ft's text
// Changing the text
$floatingText->setText($text);
// Pushing the update
WFT::getAPI()::respawnTo($player, $floatingText);
// or
WFT::getAPI()::respawnToAll($floatingText);
That's it, the rest is handled by the plugin