Compare commits
No commits in common. "fbe40942fb69f0058f4514a8e1140d3ce5c83186" and "e1afef427caf72447a968cdd2aff54501e058fa5" have entirely different histories.
fbe40942fb
...
e1afef427c
@ -1,6 +1,6 @@
|
||||
# SimplifyTools
|
||||
### An 'All-in-one' helper plugin for Minecraft Spigot Servers.
|
||||
| Build Status | [![Build Status](https://ci.dit-services.tk/job/SimplifyTools/badge/icon)](https://ci.dit-services.tk/job/SimplifyTools/) |
|
||||
| Build Status | ![ Build Status](https://ci.dit-services.tk/buildStatus/icon?job=DIT-System) |
|
||||
|:-------------:|:-----------------------------------------------------------------------------------------------------------------:|
|
||||
| MC Version | ![ MC Version](https://ci.dit-services.tk/job/SimplifyTools/badge/icon?subject=MC&status=1.16.5&color=darkblue) |
|
||||
| Lines of code | ![ Lines of code](https://tokei.rs/b1/github/LabodiDavid/SimplifyTools?category=code) |
|
||||
|
@ -9,9 +9,8 @@ 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 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`
|
||||
|
||||
<br />
|
||||
## SimplifyTools Wildcard Permissions
|
||||
|
||||
- **st.*** - Wildcard permission for all commands, permissions for this plugin.
|
||||
- **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.*`
|
9
pom.xml
9
pom.xml
@ -74,18 +74,17 @@
|
||||
</build>
|
||||
|
||||
<repositories>
|
||||
<!--<repository>
|
||||
<id>spigot-repo</id>
|
||||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
||||
</repository>-->
|
||||
<repository>
|
||||
<id>sonatype</id>
|
||||
<url>https://oss.sonatype.org/content/groups/public/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>spigot-repo</id>
|
||||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
<!--For this version use BuildTools!-->
|
||||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot</artifactId>
|
||||
|
@ -40,6 +40,9 @@ public final class DITSystem extends JavaPlugin implements CommandExecutor, List
|
||||
this.DIT_initialize();
|
||||
this.tab = new TabManager(this,this.config);
|
||||
this.dplug = new DitPluginManager(this);
|
||||
|
||||
|
||||
|
||||
System.out.println(this.getPrefix()+"Started running.");
|
||||
}
|
||||
|
||||
@ -71,6 +74,8 @@ public final class DITSystem extends JavaPlugin implements CommandExecutor, List
|
||||
}
|
||||
public void initOptions(){
|
||||
|
||||
|
||||
|
||||
if (config.getBoolean("Saving.enabled") && config.getInt("Saving.interval")>0){
|
||||
BukkitScheduler scheduler = getServer().getScheduler();
|
||||
scheduler.scheduleSyncRepeatingTask(instance, new Runnable() {
|
||||
@ -88,6 +93,7 @@ public final class DITSystem extends JavaPlugin implements CommandExecutor, List
|
||||
}, 0L, Math.convert(Math.Convert.SECONDS,Math.Convert.TICKS,instance.config.getInt("Saving.interval")));
|
||||
}
|
||||
|
||||
|
||||
if (this.config.isSet("CustomAdvancement.enabled")) {
|
||||
if(config.getBoolean("CustomAdvancement.enabled")){
|
||||
|
||||
|
@ -30,9 +30,12 @@ public class DITTabCompleter implements TabCompleter {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
List<String> idea = new ArrayList<>();
|
||||
List<String> result = new ArrayList<>();
|
||||
String curr_cmd = "";
|
||||
//String[] vizsg_args = new String[args.length+1];
|
||||
List<String> vizsg_list = new ArrayList<>();
|
||||
boolean vizsg_2 = false;
|
||||
if (args.length == 1) {
|
||||
@ -76,6 +79,8 @@ public class DITTabCompleter implements TabCompleter {
|
||||
}
|
||||
}
|
||||
return idea;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
@ -3,12 +3,17 @@ package tk.ditservices.commands;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.World;
|
||||
import tk.ditservices.DITSystem;
|
||||
|
||||
import tk.ditservices.utils.Cooldown;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.*;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
public class DitCmd implements CommandExecutor {
|
||||
String noArgMsg;
|
||||
DITSystem plugin;
|
||||
@ -53,8 +58,8 @@ public class DitCmd implements CommandExecutor {
|
||||
return true;
|
||||
}else{
|
||||
if (sender instanceof ConsoleCommandSender) {
|
||||
ConsoleCommandSender consoleadmin = (ConsoleCommandSender) sender;
|
||||
consoleadmin.sendMessage(this.noArgMsg);
|
||||
ConsoleCommandSender konzoladmin = (ConsoleCommandSender) sender;
|
||||
konzoladmin.sendMessage(this.noArgMsg);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -68,8 +73,8 @@ public class DitCmd implements CommandExecutor {
|
||||
cd.Add(p);
|
||||
}
|
||||
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")){
|
||||
@ -90,6 +95,7 @@ public class DitCmd implements CommandExecutor {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
if (args[1].equalsIgnoreCase("load")) {
|
||||
PluginCmd.handleLoad(sender,args);
|
||||
}
|
||||
@ -128,10 +134,14 @@ public class DitCmd implements CommandExecutor {
|
||||
cd.Add(p);
|
||||
} return StatCmd.Run(sender);
|
||||
}
|
||||
|
||||
}else{
|
||||
cd.CDText(sender);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user