Skip to content

Commit 172afe0

Browse files
authored
Bug fix
Fix to WolfDen133/WFT#21
1 parent f9cb2b1 commit 172afe0

31 files changed

+2887
-0
lines changed

WFT-main/LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

WFT-main/README.md

Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
# WFT - 1.3.6
2+
### Hello, and welcome to **WFT**.
3+
4+
![](logo.png)
5+
6+
### NOW IN API 4.0
7+
8+
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.
9+
10+
I have added features, because I felt the plugin needed them, and removed features, as some features where not needed.
11+
12+
## Features added
13+
14+
- WFT-OLD Migration
15+
- Multiple language support
16+
- Optional display identifier
17+
- More Tags
18+
- Per-Player Texts
19+
- Packet Texts over Entity
20+
- More efficient and pretty code
21+
22+
Migration: This should have been added on 1.0, but texts from WFT-OLD will now be automaticly migrated to WFT format.
23+
24+
Language support: You can now change the language of the plugin to suit your server.
25+
26+
Display identifier: You can now turn on or off the option to see the texts unique identifier (Much like Texter, but optional).
27+
28+
More tags: Added many more tags for better, they are also player specific.
29+
30+
Per-Player texts: Players will now get a specific text depending on what tag you use.
31+
32+
Packets: The old plugin used entities, putting more load on the server, whereas this plugin uses packets, therefore creating a more lightweight plugin.
33+
34+
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.
35+
36+
## Bug Fixes
37+
38+
### https://github.com/WolfDen133/WFT/issues/21
39+
**Status**: Fixed
40+
41+
**Version**: >=1.3.5
42+
43+
**Fixed in**: <=1.3.6
44+
45+
### https://github.com/WolfDen133/WFT/issues/20
46+
**Status**: Fixed
47+
48+
**Version**: >=1.3.4
49+
50+
**Fixed in**: <=1.3.5
51+
52+
### https://github.com/WolfDen133/WFT/issues/12
53+
**Status**: Fixed
54+
55+
**Version**: >=1.3.1
56+
57+
**Fixed in**: <=1.3.2
58+
59+
### https://github.com/WolfDen133/WFT/issues/16
60+
**Status**: Fixed
61+
62+
**Version**: >=1.3.2
63+
64+
**Fixed In**: <=1.3.3
65+
66+
## Features
67+
68+
- Refresh timer
69+
- Tags for various things
70+
- Lots of useful commands
71+
- Form or command line options
72+
- Help subcommand for new people
73+
- Powerful fast and efficient code
74+
- Extensive customizable
75+
76+
## Example
77+
![Info](https://i.imgur.com/7UZQGWR.png)
78+
79+
## Commands
80+
81+
Master command is ft|wft.master
82+
83+
| Subcommand | Permission | Description | Aliases |
84+
|------------|-------------------|----------------------------------|--------------------------------------------------------|
85+
| `wft` | `wft.command.use` | The master command | `ft` |
86+
| `add` | ~ | Add a new ft | `spawn`, `summon`, `new`, `make`, `create`, `c`, `a` |
87+
| `remove` | ~ | Remove a existing ft | `break`, `delete`, `bye`, `d`, `r`, |
88+
| `edit` | ~ | Edit an existing ft | `e`, `change` |
89+
| `tp` | ~ | Teleport to an ft | `teleportto`, `tpto`, `goto`, `teleport` |
90+
| `tphere` | ~ | Teleport a ft to you | `teleporthere`, `movehere`, `bringhere`, `tph`, `move` |
91+
| `list` | ~ | See a list of the current fts | `see`, `all` |
92+
| `help` | ~ | So you can get some in-game help | `stuck`, `h`, `?` |
93+
94+
## Tags
95+
96+
| Tag | Description |
97+
|--------------------|------------------------------------------------------------|
98+
| `#` | New line |
99+
| `&` | Use for color codes (same as `§`) |
100+
| `{NAME}` | Players real name |
101+
| `{REAL_NAME}` | Players real name |
102+
| `{DISPLAY_NAME}` | Players display name (often nick plugins use display name) |
103+
| `{PING}` | Players Current Ping |
104+
| `{MAX_PLAYERS}` | Maximum players that can be on the server |
105+
| `{ONLINE_PLAYERS}` | Currently online player count |
106+
| `{X}` | Players X Position |
107+
| `{Y}` | Players Y Position |
108+
| `{Z}` | Players Z Position |
109+
| `{REAL_TPS}` | Current server tps |
110+
| `{TPS}` | Average server tps |
111+
| `{REAL_LOAD}` | Current server load |
112+
| `{LOAD}` | Average server load |
113+
| `{LEVEL_NAME}` | Players current level name |
114+
| `{LEVEL_FOLDER}` | Players current level folder name |
115+
| `{LEVEL_PLAYERS}` | Players current level player count |
116+
| `{CONNECTION_IP}` | The IP address that the player connected from |
117+
| `{SERVER_IP}` | The servers IP address |
118+
| `{TIME}` | Current server time (Customisable in config) |
119+
| `{DATE}` | Current server date (Customisable in config) |
120+
121+
### Create your own
122+
See how to create your own [here](https://github.com/WolfDen133/WFT-Tags-Example)
123+
124+
## Languages
125+
- Czech (cz)
126+
- English (en)
127+
- German (de)
128+
- Russian (ru)
129+
- Slovak (sk)
130+
- Spanish (sp)
131+
- Ukrainian (ua)
132+
- Turkish (tr)
133+
- Indonesian (id)
134+
135+
But feel free to add your own!
136+
137+
## API
138+
139+
Example:
140+
141+
Import the classes
142+
```php
143+
144+
use WolfDen133\WFT\WFT;
145+
use WolfDen133\WFT\Texts\FloatingText;
146+
147+
```
148+
Creating the text
149+
```php
150+
// Creation and registration
151+
$floatingText = new FloatingText(new Position($x, $y, $z, $level), $name, $text);
152+
WFT::getAPI()->registerText($floatingText);
153+
154+
// Spawning
155+
WFT::getAPI()::spawnTo($player, $floatingText);
156+
// or
157+
WFT::getAPI()::spawnToAll($floatingText);
158+
```
159+
160+
Changing the ft's text
161+
```php
162+
// Changing the text
163+
$floatingText->setText($text);
164+
165+
// Pushing the update
166+
WFT::getAPI()::respawnTo($player, $floatingText);
167+
// or
168+
WFT::getAPI()::respawnToAll($floatingText);
169+
```
170+
171+
That's it, the rest is handled by the plugin
172+
173+
## Credit
174+
175+
- [**WolfDen133**](https://github.com/WolfDen133) (*Main Programmer*) [ฬ๏ɭŦ๔єภ133;#6969]
176+
- [**McMelonTV**](https://github.com/McMelonTV) (*Translations - Slovak, Czech*) [McMelon#9999]
177+
- [**TheFixDev**](https://github.com/TheFixDev) (*Translation - German*) [𝓗𝓪𝓫𝓓𝓲𝓬𝓱𝓢𝓸𝓖𝓮𝓻𝓷#6158]
178+
- [**kostamax27**](https://github.com/kostamax27) (*Suggestion & Translation - Russian, Ukrainian*) [kostamax27#0160]
179+
- [**Sergittos**](https://github.com/Sergittos) (*Translation - Spanish*) [Sergittos#0001]
180+
- [**DragonfireHD**](https://github.com/DragonfireHD) (*Translation - Turkish*)
181+
- [**keenanyafiqy**](https://github.com/keenanyafiqy) (*Translation - Indonesian*)
182+

WFT-main/logo.png

3.63 KB
Loading

WFT-main/plugin.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: WFT
3+
author: WolfDen133
4+
5+
main: WolfDen133\WFT\WFT
6+
7+
version: 1.3.6
8+
api: 4.10.0
9+
10+
permissions:
11+
wft.command.use:
12+
default: op
13+
description: Allows the use of the wft command
14+
15+
...

WFT-main/resources/config.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# WFT, MADE BY WOLFDEN133
2+
3+
# Master language for the plugin
4+
# All languages in the "lang/" dir will work
5+
language: "en"
6+
7+
# Timezone for dates and times
8+
timezone: "UTC"
9+
10+
# Time format for time tag
11+
# Get help and formatting at https://www.php.net/manual/en/function.date.php
12+
time-format: "H:i:s"
13+
14+
# Date format for date tag
15+
# Get help and formatting at https://www.php.net/manual/en/function.date.php
16+
date-format: "d-m-Y"
17+
18+
# Displays the text's identifier at the bottom of the text to ops if enabled, much like Texter
19+
display-identifier: true

WFT-main/resources/cz.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Czech language for WFT
2+
3+
# Name for the language file
4+
name: "cz"
5+
6+
7+
# Main prefix for the plugin messages
8+
prefix: "&l&8[&r&aWFT&l&8]"
9+
10+
# Main command language options
11+
command:
12+
lable: 'wft'
13+
description: 'Spravuj své létající texty'
14+
usage: 'Použití: /wft help'
15+
permission: 'wft.command.use'
16+
aliases: ['ft', 'wfloatingtext', 'floatingtext', 'wolfiesft']
17+
sender: '&eOmlouváme se, ale tento příkaz je jen pro hráče!'
18+
help: "<===== WFT HELP =====>{LINE}Příkaz: /wft <arguments: mixed>{LINE}Arguments:{LINE}{LINE} add:{LINE} Popis: Přidejte létající text{LINE} Použití: /wft add (<name: string> [text: string]){LINE}{LINE} remove:{LINE} Popis: Odstraňte létající text{LINE} Použití: /wft remove (<name: string>){LINE}{LINE} edit:{LINE} Popis: Upravte létající text{LINE} Použití: /wft edit (<name: string> [newText: string]){LINE}{LINE} tp:{LINE} Popis: Teleportujte se na létající text{LINE} Použití: /wft tp (<name: string>){LINE}{LINE} tphere:{LINE} Popis: Teleportujte létající text k vám{LINE} Použití: /wft tphere (<name: string>){LINE}{LINE} help:{LINE} Popis: Získejte pomoc s WFT{LINE} Použití: /wft help{LINE}<==== WFT HELP ====>"
19+
20+
message:
21+
not-found: "Text {NAME} nebyl nalezen!"
22+
exists: "Text {NAME} již existuje!"
23+
remove: "Text {NAME} byl úspěšně odstraněn!"
24+
add: "Text {NAME} byl úspěšně vytvořen!"
25+
update: "Text {NAME} byl úspěšně upraven!"
26+
27+
form:
28+
create:
29+
title: "Vytvoření létajícího textu"
30+
content: "Vyplň k vytvoření nového létajícího textu"
31+
name-title: "Název létajícího textu"
32+
name-placeholder: "Jedinečný identifikátor"
33+
text-title: "Obsah létajícího textu"
34+
text-placeholder: "Použij kódy s & pro barvy"
35+
36+
edit:
37+
title: "Upravení létajícího textu"
38+
content: "Vyplň na upravení textu {NAME}"
39+
text-title: "Obsah létajícího textu"
40+
text-placeholder: "Použij kódy s & pro barvy"
41+
42+
list-title: "Vyber létající text"

WFT-main/resources/de.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# German language for WFT
2+
3+
# Name for the language file
4+
name: "de"
5+
6+
7+
# Main prefix for the plugin messages
8+
prefix: "&l&8[&r&aWFT&l&8]"
9+
10+
# Main command language options
11+
command:
12+
lable: 'wft'
13+
description: 'Verwalte Floating Text'
14+
usage: 'Hilfe: /wft help'
15+
permission: 'wft.command.use'
16+
aliases: ['ft', 'wfloatingtext', 'floatingtext', 'wolfiesft']
17+
sender: '&eDieser Command ist nur für bestimmte Spieler gedacht'
18+
help: "<===== WFT HILFE =====>{LINE}Command: /wft <arguments: mixed>{LINE}Arguments:{LINE}{LINE} add:{LINE} Description: Füge ein Hologramm hinzu{LINE} Hilfe: /wft add (<name: string> [text: string]){LINE}{LINE} remove:{LINE} Description: Entferne ein Hologramm{LINE} Hilfe: /wft remove (<name: string>){LINE}{LINE} edit:{LINE} Description: Ändere Hologramme{LINE} Usage: /wft edit (<name: string> [newText: string]){LINE}{LINE} tp:{LINE} Description: Teleportiere ein Hologramm{LINE} Usage: /wft tp (<name: string>){LINE}{LINE} tphere:{LINE} Description: Teleportiere ein Hologramm zu dir{LINE} Usage: /wft tphere (<name: string>){LINE}{LINE} help:{LINE} Description: Zeigt dir die Hilf Seite an{LINE} Usage: /wft help{LINE}<==== WFT HILFE ====>"
19+
20+
message:
21+
not-found: "Sorry, but the text {NAME} can not be found!"
22+
exists: "Entschuldigung das Hologramm {NAME} existiert bereits!"
23+
remove: "Das Hologramm {NAME} wurde erfolgreich entfernt!"
24+
add: "Das Hologramm {NAME} wurde erfolgreich erstellt"
25+
update: "Das Hologramm {NAME} wurde geupdatet"
26+
27+
form:
28+
create:
29+
title: "Erstelle ein Hologramm"
30+
content: "Fülle alles aus um ein Hologramm erstellen zu können"
31+
name-title: "Hologramm Name"
32+
name-placeholder: "Eindeutige Kennung"
33+
text-title: "Hologramm Text"
34+
text-placeholder: "Nutze & für Farben"
35+
36+
edit:
37+
title: "Hologramm bearbeiten"
38+
content: "Bearbeite das Hologramm {NAME}"
39+
text-title: "Hologramm Name"
40+
text-placeholder: "Nutze & für Farben"
41+
42+
list-title: "Wähle ein Hologramm aus"
43+
44+

WFT-main/resources/en.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# English language for WFT
2+
3+
# Name for the language file
4+
name: "en"
5+
6+
7+
# Main prefix for the plugin messages
8+
prefix: "&l&8[&r&aWFT&l&8]"
9+
10+
# Main command language options
11+
command:
12+
lable: 'wft'
13+
description: 'Manage your floating texts'
14+
usage: 'Usage: /wft help'
15+
permission: 'wft.command.use'
16+
aliases: ['ft', 'wfloatingtext', 'floatingtext', 'wolfiesft']
17+
sender: '&eSorry, that command is for players only!'
18+
help: "<===== WFT HELP =====>{LINE}Command: /wft <arguments: mixed>{LINE}Arguments:{LINE}{LINE} add:{LINE} Description: Add a floating-text{LINE} Usage: /wft add (<name: string> [text: string]){LINE}{LINE} remove:{LINE} Description: Remove a floating-text{LINE} Usage: /wft remove (<name: string>){LINE}{LINE} edit:{LINE} Description: Change a floating-text's text{LINE} Usage: /wft edit (<name: string> [newText: string]){LINE}{LINE} tp:{LINE} Description: Teleport to a floating-text{LINE} Usage: /wft tp (<name: string>){LINE}{LINE} tphere:{LINE} Description: Teleport a floating-text to you{LINE} Usage: /wft tphere (<name: string>){LINE}{LINE} help:{LINE} Description: Get help with WFT{LINE} Usage: /wft help{LINE}<==== WFT HELP ====>"
19+
20+
message:
21+
not-found: "Sorry, but the text {NAME} can not be found!"
22+
exists: "Sorry, but the text {NAME} already exists!"
23+
remove: "Successfully removed the text {NAME}!"
24+
add: "Successfully created the text {NAME}!"
25+
update: "Successfully updated the text {NAME}!"
26+
27+
form:
28+
create:
29+
title: "Create a Floating Text"
30+
content: "Fill out the form below to create a new floating text."
31+
name-title: "Floating Text name"
32+
name-placeholder: "Unique identifier"
33+
text-title: "Floating Text content"
34+
text-placeholder: "Use & for colors"
35+
36+
edit:
37+
title: "Edit a floating text"
38+
content: "Edit a {NAME} content in the form below."
39+
text-title: "Floating Text content"
40+
text-placeholder: "Use & for colors"
41+
42+
list-title: "Select a floating text"
43+
44+

WFT-main/resources/id.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Indonesian language for WFT, translated by @keenanyafiqy
2+
3+
# Name for the language file
4+
name: "id"
5+
6+
# Main prefix for the plugin messages
7+
prefix: "&l&8[&r&aWFT&l&8]"
8+
9+
# Main command language options
10+
command:
11+
lable: 'wft'
12+
description: 'Kelola teks mengambang Anda'
13+
usage: 'Penggunaan: /wft help'
14+
permission: 'wft.command.use'
15+
aliases: ['ft', 'wfloatingtext', 'floatingtext', 'wolfiesft']
16+
sender: '&eMaaf, perintah itu hanya untuk pemain!'
17+
help: "<===== BANTUAN WFT =====>{LINE}Perintah: /wft <argumen: campur aduk>{LINE}Argumen:{LINE}{LINE} tambah:{LINE} Deskripsi: Tambahkan teks mengambang{LINE} Penggunaan: /wft add (<nama: string> [teks: string]){LINE}{LINE} hapus:{LINE} Deskripsi: Menghapus teks mengambang{LINE} Penggunaan: /wft remove (<nama: string>){LINE}{LINE} edit:{LINE} Deskripsi: Mengubah teks mengambang{LINE} Penggunaan: /wft edit (<nama: string> [teksBaru: string]){LINE}{LINE} tp:{LINE} Deskripsi: Teleportasi ke teks mengambang{LINE} Penggunaan: /wft tp (<nama: string>){LINE}{LINE} tphere:{LINE} Deskripsi: Menteleportasikan teks mengambang ke Anda{LINE} Penggunaan: /wft tphere (<nama: string>){LINE}{LINE} help:{LINE} Deskripsi: Dapatkan bantuan dengan WFT{LINE} Penggunaan: /wft help{LINE}<==== BANTUAN WFT ====>"
18+
19+
message:
20+
not-found: "Maaf, teks {NAME} tidak dapat ditemukan!"
21+
exists: "Maaf, tapi teks {NAME} sudah ada!"
22+
remove: "Berhasil menghapus teks {NAME}!"
23+
add: "Berhasil membuat teks {NAME}!"
24+
update: "Berhasil memperbarui teks {NAME}!"
25+
26+
form:
27+
create:
28+
title: "Buat Teks Mengambang"
29+
content: "Isi formulir di bawah ini untuk membuat teks mengambang baru."
30+
name-title: "Nama Teks Mengambang"
31+
name-placeholder: "Pengenal unik"
32+
text-title: "Konten Teks Mengambang"
33+
text-placeholder: "Gunakan & untuk warna"
34+
35+
edit:
36+
title: "Edit teks mengambang"
37+
content: "Edit konten {NAME} dalam formulir di bawah ini."
38+
text-title: "Konten Teks Mengambang"
39+
text-placeholder: "Gunakan & untuk warna"
40+
41+
list-title: "Pilih teks mengambang"

0 commit comments

Comments
 (0)