feat: added Pin Feature
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package de.hessj.environmentex;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.command.TabCompleter;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
public class PinFeature implements TabCompleter {
|
||||
//TODO: add to webpage
|
||||
public static File pinYml = new File(App.main.getDataFolder() + "/pins.yml");
|
||||
public static FileConfiguration pinConfig = YamlConfiguration.loadConfiguration(pinYml);
|
||||
@Override
|
||||
public List<String> onTabComplete(CommandSender sender, Command command, String label, String[] args) {
|
||||
return List.of(); // Return an empty list to disable autocompletion
|
||||
}
|
||||
|
||||
//For more see EnvironmentExCommands.java
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user