Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package test.thatautisticboy;
- import java.io.File;
- import java.util.Random;
- import org.bukkit.ChatColor;
- import org.bukkit.Location;
- import org.bukkit.Material;
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandSender;
- import org.bukkit.configuration.file.FileConfiguration;
- import org.bukkit.entity.Player;
- import org.bukkit.permissions.Permission;
- import org.bukkit.plugin.PluginManager;
- import org.bukkit.plugin.java.JavaPlugin;
- public class test12848 extends JavaPlugin {
- FileConfiguration config;
- File cfile;
- public Permission playerPermission = new Permission ("wild.use");
- public void onEnable() {
- getConfig().options().copyDefaults(true);
- saveConfig();
- }
- public void onDisable() {
- }
- public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
- if (cmd.getName().equalsIgnoreCase("test") && sender instanceof Player) {
- Player player = (Player) sender;
- if(this.getConfig().getBoolean("teleportchatenable"))
- if(cmd.getName().equals("commamd")) {
- if(this.getConfig().getBoolean("Enable") == true) {
- player.sendMessage(player.getName());
- } else if(this.getConfig().getBoolean("disable") == false) {
- player.sendMessage(this.getConfig().getString("test")); {
- }
- }
- }
- return true;
- }
- return false;
- }
- }
- // player.sendMessage(this.getConfig().getString("Test")("Hello, " + player.getName());{
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement