Compare commits
4 Commits
6322a444be
...
1.0.0
Author | SHA1 | Date | |
---|---|---|---|
fbe40942fb | |||
cdba5e89ef | |||
8e3e0ecb37 | |||
e1afef427c |
10
README.md
10
README.md
@ -1,6 +1,6 @@
|
|||||||
# SimplifyTools
|
# SimplifyTools
|
||||||
### An 'All-in-one' helper plugin for Minecraft Spigot Servers.
|
### An 'All-in-one' helper plugin for Minecraft Spigot Servers.
|
||||||
| Build Status |  |
|
| Build Status | [](https://ci.dit-services.tk/job/SimplifyTools/) |
|
||||||
|:-------------:|:-----------------------------------------------------------------------------------------------------------------:|
|
|:-------------:|:-----------------------------------------------------------------------------------------------------------------:|
|
||||||
| MC Version |  |
|
| MC Version |  |
|
||||||
| Lines of code |  |
|
| Lines of code |  |
|
||||||
@ -9,18 +9,18 @@
|
|||||||
|
|
||||||
- **Tab Manager** - Allows you to specify colored texts, with animations on the tab window.
|
- **Tab Manager** - Allows you to specify colored texts, with animations on the tab window.
|
||||||
Also you can display the average ping, Server RAM statistics.
|
Also you can display the average ping, Server RAM statistics.
|
||||||

|

|
||||||
- **Automatic/command saving** - Allows you to schedule auto saving of the world/player data on your server, or you can initiate a save by a command.
|
- **Automatic/command saving** - Allows you to schedule auto saving of the world/player data on your server, or you can initiate a save by a command.
|
||||||
- **Custom Connect/Disconnect messages** - Allows you to customize the message that is broadcasted when someone joins or leaves the server.
|
- **Custom Connect/Disconnect messages** - Allows you to customize the message that is broadcasted when someone joins or leaves the server.
|
||||||

|

|
||||||
- **Plugin Manager** - Allows you to unload/load plugins without a server restart.
|
- **Plugin Manager** - Allows you to unload/load plugins without a server restart.
|
||||||
(Note: This may be removed in 1.17.x versions for security reasons)
|
(Note: This may be removed in 1.17.x versions for security reasons)
|
||||||
- **Gameplay statistics** - You can check your gameplay statistics such as player/mob kills, etc.
|
- **Gameplay statistics** - You can check your gameplay statistics such as player/mob kills, etc.
|
||||||
(Note: The plugin just shows the stats not recording itself, so stats before installing this plugin are counted too.)
|
(Note: The plugin just shows the stats not recording itself, so stats before installing this plugin are counted too.)
|
||||||

|

|
||||||
- **Custom Advancement Messages** - You can customize the advancement messages in three categories: advancement, goal, challenge.
|
- **Custom Advancement Messages** - You can customize the advancement messages in three categories: advancement, goal, challenge.
|
||||||
(Note: The advancement names are currently only can be displayed in english. In future versions there will be a feature to translate to any languages.)
|
(Note: The advancement names are currently only can be displayed in english. In future versions there will be a feature to translate to any languages.)
|
||||||

|

|
||||||
- **Logging** - A logger with fully customizable format for dis/connect, chat, commands actions.
|
- **Logging** - A logger with fully customizable format for dis/connect, chat, commands actions.
|
||||||
### [Check the config file for more explanation and examples](https://github.com/LabodiDavid/SimplifyTools/blob/main/src/main/resources/config.yml)
|
### [Check the config file for more explanation and examples](https://github.com/LabodiDavid/SimplifyTools/blob/main/src/main/resources/config.yml)
|
||||||
|
|
||||||
|
@ -9,8 +9,9 @@ You can use the following commands to use the features of SimplifyTools.
|
|||||||
- **/st pmanager load** <PLUGIN-NAME>: Plugin loading.<br />Requires `st.pmanager.load (can be inherited from st.pmanager.*)`
|
- **/st pmanager load** <PLUGIN-NAME>: Plugin loading.<br />Requires `st.pmanager.load (can be inherited from st.pmanager.*)`
|
||||||
- **/st pmanager unload** <PLUGIN-NAME>: Plugin unload.<br />Requires `st.pmanager.unload (can be inherited from st.pmanager.*)`
|
- **/st pmanager unload** <PLUGIN-NAME>: Plugin unload.<br />Requires `st.pmanager.unload (can be inherited from st.pmanager.*)`
|
||||||
- **/st reload**: Plugin settings reload.<br />Requires `st.reload`
|
- **/st reload**: Plugin settings reload.<br />Requires `st.reload`
|
||||||
<br />
|
|
||||||
## SimplifyTools Wildcard Permissions
|
## SimplifyTools Wildcard Permissions
|
||||||
|
|
||||||
- **st.*** - Wildcard permission for all commands, permissions for this plugin.
|
- **st.*** - Wildcard permission for all commands, permissions for this plugin.
|
||||||
- **st.pmanager.*** - Wildcard permission for the plugin manager commands.
|
- **st.pmanager.*** - Wildcard permission for the plugin manager commands.
|
||||||
- **st.admin** - A wildcard permission for admins. This is used for notify when update available, also grants usage for `st.save` and `st.pmanager.*`
|
- **st.admin** - A wildcard permission for admins. This is used for notify when update available, also grants usage for `st.save` and `st.pmanager.*`
|
BIN
docs/img/1.gif
Normal file
BIN
docs/img/1.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 MiB |
BIN
docs/img/2.gif
Normal file
BIN
docs/img/2.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 948 KiB |
BIN
docs/img/3.gif
Normal file
BIN
docs/img/3.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 MiB |
BIN
docs/img/4.gif
Normal file
BIN
docs/img/4.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 MiB |
9
pom.xml
9
pom.xml
@ -74,17 +74,18 @@
|
|||||||
</build>
|
</build>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
|
<!--<repository>
|
||||||
|
<id>spigot-repo</id>
|
||||||
|
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
||||||
|
</repository>-->
|
||||||
<repository>
|
<repository>
|
||||||
<id>sonatype</id>
|
<id>sonatype</id>
|
||||||
<url>https://oss.sonatype.org/content/groups/public/</url>
|
<url>https://oss.sonatype.org/content/groups/public/</url>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
|
||||||
<id>spigot-repo</id>
|
|
||||||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
<!--For this version use BuildTools!-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.spigotmc</groupId>
|
<groupId>org.spigotmc</groupId>
|
||||||
<artifactId>spigot</artifactId>
|
<artifactId>spigot</artifactId>
|
||||||
|
@ -40,9 +40,6 @@ public final class DITSystem extends JavaPlugin implements CommandExecutor, List
|
|||||||
this.DIT_initialize();
|
this.DIT_initialize();
|
||||||
this.tab = new TabManager(this,this.config);
|
this.tab = new TabManager(this,this.config);
|
||||||
this.dplug = new DitPluginManager(this);
|
this.dplug = new DitPluginManager(this);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
System.out.println(this.getPrefix()+"Started running.");
|
System.out.println(this.getPrefix()+"Started running.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,8 +71,6 @@ public final class DITSystem extends JavaPlugin implements CommandExecutor, List
|
|||||||
}
|
}
|
||||||
public void initOptions(){
|
public void initOptions(){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (config.getBoolean("Saving.enabled") && config.getInt("Saving.interval")>0){
|
if (config.getBoolean("Saving.enabled") && config.getInt("Saving.interval")>0){
|
||||||
BukkitScheduler scheduler = getServer().getScheduler();
|
BukkitScheduler scheduler = getServer().getScheduler();
|
||||||
scheduler.scheduleSyncRepeatingTask(instance, new Runnable() {
|
scheduler.scheduleSyncRepeatingTask(instance, new Runnable() {
|
||||||
@ -93,7 +88,6 @@ public final class DITSystem extends JavaPlugin implements CommandExecutor, List
|
|||||||
}, 0L, Math.convert(Math.Convert.SECONDS,Math.Convert.TICKS,instance.config.getInt("Saving.interval")));
|
}, 0L, Math.convert(Math.Convert.SECONDS,Math.Convert.TICKS,instance.config.getInt("Saving.interval")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (this.config.isSet("CustomAdvancement.enabled")) {
|
if (this.config.isSet("CustomAdvancement.enabled")) {
|
||||||
if(config.getBoolean("CustomAdvancement.enabled")){
|
if(config.getBoolean("CustomAdvancement.enabled")){
|
||||||
|
|
||||||
|
@ -30,12 +30,9 @@ public class DITTabCompleter implements TabCompleter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
List<String> idea = new ArrayList<>();
|
List<String> idea = new ArrayList<>();
|
||||||
List<String> result = new ArrayList<>();
|
List<String> result = new ArrayList<>();
|
||||||
String curr_cmd = "";
|
String curr_cmd = "";
|
||||||
//String[] vizsg_args = new String[args.length+1];
|
|
||||||
List<String> vizsg_list = new ArrayList<>();
|
List<String> vizsg_list = new ArrayList<>();
|
||||||
boolean vizsg_2 = false;
|
boolean vizsg_2 = false;
|
||||||
if (args.length == 1) {
|
if (args.length == 1) {
|
||||||
@ -79,8 +76,6 @@ public class DITTabCompleter implements TabCompleter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return idea;
|
return idea;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
@ -3,17 +3,12 @@ package tk.ditservices.commands;
|
|||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import tk.ditservices.DITSystem;
|
import tk.ditservices.DITSystem;
|
||||||
|
|
||||||
import tk.ditservices.utils.Cooldown;
|
import tk.ditservices.utils.Cooldown;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.command.*;
|
import org.bukkit.command.*;
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
|
|
||||||
public class DitCmd implements CommandExecutor {
|
public class DitCmd implements CommandExecutor {
|
||||||
String noArgMsg;
|
String noArgMsg;
|
||||||
DITSystem plugin;
|
DITSystem plugin;
|
||||||
@ -58,8 +53,8 @@ public class DitCmd implements CommandExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}else{
|
}else{
|
||||||
if (sender instanceof ConsoleCommandSender) {
|
if (sender instanceof ConsoleCommandSender) {
|
||||||
ConsoleCommandSender konzoladmin = (ConsoleCommandSender) sender;
|
ConsoleCommandSender consoleadmin = (ConsoleCommandSender) sender;
|
||||||
konzoladmin.sendMessage(this.noArgMsg);
|
consoleadmin.sendMessage(this.noArgMsg);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -73,8 +68,8 @@ public class DitCmd implements CommandExecutor {
|
|||||||
cd.Add(p);
|
cd.Add(p);
|
||||||
}
|
}
|
||||||
sender.sendMessage(plugin.getPrefix()+ChatColor.GREEN+"Successfully reload!");
|
sender.sendMessage(plugin.getPrefix()+ChatColor.GREEN+"Successfully reload!");
|
||||||
|
sender.sendMessage(plugin.getPrefix()+ChatColor.RED+"Notice: Restart your server if the settings didn't applied.");
|
||||||
}
|
}
|
||||||
//sender.sendMessage(plugin.getPrefix()+ChatColor.RED+" Ezt a verziót a "+ChatColor.YELLOW+"'/reload confirm'"+ChatColor.RED+" parancssal tudod csak újratölteni!");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.getName().equalsIgnoreCase("st") && args[0].contains("pmanager")){
|
if (command.getName().equalsIgnoreCase("st") && args[0].contains("pmanager")){
|
||||||
@ -95,7 +90,6 @@ public class DitCmd implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args[1].equalsIgnoreCase("load")) {
|
if (args[1].equalsIgnoreCase("load")) {
|
||||||
PluginCmd.handleLoad(sender,args);
|
PluginCmd.handleLoad(sender,args);
|
||||||
}
|
}
|
||||||
@ -134,14 +128,10 @@ public class DitCmd implements CommandExecutor {
|
|||||||
cd.Add(p);
|
cd.Add(p);
|
||||||
} return StatCmd.Run(sender);
|
} return StatCmd.Run(sender);
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
cd.CDText(sender);
|
cd.CDText(sender);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user