Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
TestPlugin.java
1 package org.bukkit.plugin;
2 
3 import java.io.File;
4 import java.io.InputStream;
5 import java.util.List;
6 
7 import org.bukkit.Server;
12 
13 import com.avaje.ebean.EbeanServer;
14 
15 public class TestPlugin extends PluginBase {
16  private boolean enabled = true;
17 
18  final private String pluginName;
19 
20  public TestPlugin(String pluginName) {
21  this.pluginName = pluginName;
22  }
23 
24  public void setEnabled(boolean enabled) {
25  this.enabled = enabled;
26  }
27 
28  public File getDataFolder() {
29  throw new UnsupportedOperationException("Not supported.");
30  }
31 
33  return new PluginDescriptionFile(pluginName, "1.0", "test.test");
34  }
35 
37  throw new UnsupportedOperationException("Not supported.");
38  }
39 
40  public InputStream getResource(String filename) {
41  throw new UnsupportedOperationException("Not supported.");
42  }
43 
44  public void saveConfig() {
45  throw new UnsupportedOperationException("Not supported.");
46  }
47 
48  public void saveDefaultConfig() {
49  throw new UnsupportedOperationException("Not supported.");
50  }
51 
52  public void saveResource(String resourcePath, boolean replace) {
53  throw new UnsupportedOperationException("Not supported.");
54  }
55 
56  public void reloadConfig() {
57  throw new UnsupportedOperationException("Not supported.");
58  }
59 
61  throw new UnsupportedOperationException("Not supported.");
62  }
63 
65  throw new UnsupportedOperationException("Not supported.");
66  }
67 
68  public Server getServer() {
69  throw new UnsupportedOperationException("Not supported.");
70  }
71 
72  public boolean isEnabled() {
73  return enabled;
74  }
75 
76  public void onDisable() {
77  throw new UnsupportedOperationException("Not supported.");
78  }
79 
80  public void onLoad() {
81  throw new UnsupportedOperationException("Not supported.");
82  }
83 
84  public void onEnable() {
85  throw new UnsupportedOperationException("Not supported.");
86  }
87 
88  public boolean isNaggable() {
89  throw new UnsupportedOperationException("Not supported.");
90  }
91 
92  public void setNaggable(boolean canNag) {
93  throw new UnsupportedOperationException("Not supported.");
94  }
95 
96  public EbeanServer getDatabase() {
97  throw new UnsupportedOperationException("Not supported.");
98  }
99 
100  public ChunkGenerator getDefaultWorldGenerator(String worldName, String id) {
101  throw new UnsupportedOperationException("Not supported.");
102  }
103 
104  public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
105  throw new UnsupportedOperationException("Not supported.");
106  }
107 
108  public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
109  throw new UnsupportedOperationException("Not supported.");
110  }
111 }
boolean onCommand(CommandSender sender, Command command, String label, String[] args)
List< String > onTabComplete(CommandSender sender, Command command, String alias, String[] args)
FileConfiguration getConfig()
Definition: TestPlugin.java:36
InputStream getResource(String filename)
Definition: TestPlugin.java:40
ChunkGenerator getDefaultWorldGenerator(String worldName, String id)
PluginDescriptionFile getDescription()
Definition: TestPlugin.java:32
void saveResource(String resourcePath, boolean replace)
Definition: TestPlugin.java:52
void setNaggable(boolean canNag)
Definition: TestPlugin.java:92
PluginLoader getPluginLoader()
Definition: TestPlugin.java:64