Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
Bukkit.java
1 package org.bukkit;
2 
3 import java.awt.image.BufferedImage;
4 import java.io.File;
5 import java.util.Iterator;
6 import java.util.List;
7 import java.util.Map;
8 import java.util.Set;
9 import java.util.UUID;
10 import java.util.logging.Logger;
11 
16 import org.bukkit.entity.Player;
18 import org.bukkit.help.HelpMap;
22 import org.bukkit.inventory.Recipe;
23 import org.bukkit.map.MapView;
30 
31 import com.avaje.ebean.config.ServerConfig;
33 
34 /**
35  * Represents the Bukkit core, for version and Server singleton handling
36  */
37 public final class Bukkit {
38  private static Server server;
39 
40  /**
41  * Static class cannot be initialized.
42  */
43  private Bukkit() {}
44 
45  /**
46  * Gets the current {@link Server} singleton
47  *
48  * @return Server instance being ran
49  */
50  public static Server getServer() {
51  return server;
52  }
53 
54  /**
55  * Attempts to set the {@link Server} singleton.
56  * <p>
57  * This cannot be done if the Server is already set.
58  *
59  * @param server Server instance
60  */
61  public static void setServer(Server server) {
62  if (Bukkit.server != null) {
63  throw new UnsupportedOperationException("Cannot redefine singleton Server");
64  }
65 
66  Bukkit.server = server;
67  server.getLogger().info("This server is running " + getName() + " version " + getVersion() + " (Implementing API version " + getBukkitVersion() + ")");
68  }
69 
70  /**
71  * @see Server#getName()
72  */
73  public static String getName() {
74  return server.getName();
75  }
76 
77  /**
78  * @see Server#getVersion()
79  */
80  public static String getVersion() {
81  return server.getVersion();
82  }
83 
84  /**
85  * @see Server#getBukkitVersion()
86  */
87  public static String getBukkitVersion() {
88  return server.getBukkitVersion();
89  }
90 
91  /**
92  * @see Server#getOnlinePlayers()
93  */
94  public static Player[] getOnlinePlayers() {
95  return server.getOnlinePlayers();
96  }
97 
98  /**
99  * @see Server#getMaxPlayers()
100  */
101  public static int getMaxPlayers() {
102  return server.getMaxPlayers();
103  }
104 
105  /**
106  * @see Server#getPort()
107  */
108  public static int getPort() {
109  return server.getPort();
110  }
111 
112  /**
113  * @see Server#getViewDistance()
114  */
115  public static int getViewDistance() {
116  return server.getViewDistance();
117  }
118 
119  /**
120  * @see Server#getIp()
121  */
122  public static String getIp() {
123  return server.getIp();
124  }
125 
126  /**
127  * @see Server#getServerName()
128  */
129  public static String getServerName() {
130  return server.getServerName();
131  }
132 
133  /**
134  * @see Server#getServerId()
135  */
136  public static String getServerId() {
137  return server.getServerId();
138  }
139 
140  /**
141  * @see Server#getWorldType()
142  */
143  public static String getWorldType() {
144  return server.getWorldType();
145  }
146 
147  /**
148  * @see Server#getGenerateStructures()
149  */
150  public static boolean getGenerateStructures() {
151  return server.getGenerateStructures();
152  }
153 
154  /**
155  * @see Server#getAllowNether()
156  */
157  public static boolean getAllowNether() {
158  return server.getAllowNether();
159  }
160 
161  /**
162  * @see Server#hasWhitelist()
163  */
164  public static boolean hasWhitelist() {
165  return server.hasWhitelist();
166  }
167 
168  /**
169  * @see Server#broadcastMessage(String message)
170  */
171  public static int broadcastMessage(String message) {
172  return server.broadcastMessage(message);
173  }
174 
175  /**
176  * @see Server#getUpdateFolder()
177  */
178  public static String getUpdateFolder() {
179  return server.getUpdateFolder();
180  }
181 
182  /**
183  * @see Server#getPlayer(String name)
184  */
185  @Deprecated
186  public static Player getPlayer(String name) {
187  return server.getPlayer(name);
188  }
189 
190  /**
191  * @see Server#matchPlayer(String name)
192  */
193  @Deprecated
194  public static List<Player> matchPlayer(String name) {
195  return server.matchPlayer(name);
196  }
197 
198  /**
199  * @see Server#getPlayer(java.util.UUID)
200  */
201  public static Player getPlayer(UUID id) {
202  return server.getPlayer(id);
203  }
204 
205  /**
206  * @see Server#getPluginManager()
207  */
208  public static PluginManager getPluginManager() {
209  return server.getPluginManager();
210  }
211 
212  /**
213  * @see Server#getScheduler()
214  */
215  public static BukkitScheduler getScheduler() {
216  return server.getScheduler();
217  }
218 
219  /**
220  * @see Server#getServicesManager()
221  */
223  return server.getServicesManager();
224  }
225 
226  /**
227  * @see Server#getWorlds()
228  */
229  public static List<World> getWorlds() {
230  return server.getWorlds();
231  }
232 
233  /**
234  * @see Server#createWorld(WorldCreator options)
235  */
236  public static World createWorld(WorldCreator options) {
237  return server.createWorld(options);
238  }
239 
240  /**
241  * @see Server#unloadWorld(String name, boolean save)
242  */
243  public static boolean unloadWorld(String name, boolean save) {
244  return server.unloadWorld(name, save);
245  }
246 
247  /**
248  * @see Server#unloadWorld(World world, boolean save)
249  */
250  public static boolean unloadWorld(World world, boolean save) {
251  return server.unloadWorld(world, save);
252  }
253 
254  /**
255  * @see Server#getWorld(String name)
256  */
257  public static World getWorld(String name) {
258  return server.getWorld(name);
259  }
260 
261  /**
262  * @see Server#getWorld(UUID uid)
263  */
264  public static World getWorld(UUID uid) {
265  return server.getWorld(uid);
266  }
267 
268  /**
269  * @see Server#getMap(short id)
270  * @deprecated Magic value
271  */
272  @Deprecated
273  public static MapView getMap(short id) {
274  return server.getMap(id);
275  }
276 
277  /**
278  * @see Server#createMap(World world)
279  */
280  public static MapView createMap(World world) {
281  return server.createMap(world);
282  }
283 
284  /**
285  * @see Server#reload()
286  */
287  public static void reload() {
288  server.reload();
289  }
290 
291  /**
292  * @see Server#getLogger()
293  */
294  public static Logger getLogger() {
295  return server.getLogger();
296  }
297 
298  /**
299  * @see Server#getPluginCommand(String name)
300  */
301  public static PluginCommand getPluginCommand(String name) {
302  return server.getPluginCommand(name);
303  }
304 
305  /**
306  * @see Server#savePlayers()
307  */
308  public static void savePlayers() {
309  server.savePlayers();
310  }
311 
312  /**
313  * @see Server#dispatchCommand(CommandSender sender, String commandLine)
314  */
315  public static boolean dispatchCommand(CommandSender sender, String commandLine) {
316  return server.dispatchCommand(sender, commandLine);
317  }
318 
319  /**
320  * @see Server#configureDbConfig(ServerConfig config)
321  */
322  public static void configureDbConfig(ServerConfig config) {
323  server.configureDbConfig(config);
324  }
325 
326  /**
327  * @see Server#addRecipe(Recipe recipe)
328  */
329  public static boolean addRecipe(Recipe recipe) {
330  return server.addRecipe(recipe);
331  }
332 
333  /**
334  * @see Server#getRecipesFor(ItemStack result)
335  */
336  public static List<Recipe> getRecipesFor(ItemStack result) {
337  return server.getRecipesFor(result);
338  }
339 
340  /**
341  * @see Server#recipeIterator()
342  */
343  public static Iterator<Recipe> recipeIterator() {
344  return server.recipeIterator();
345  }
346 
347  /**
348  * @see Server#clearRecipes()
349  */
350  public static void clearRecipes() {
351  server.clearRecipes();
352  }
353 
354  /**
355  * @see Server#resetRecipes()
356  */
357  public static void resetRecipes() {
358  server.resetRecipes();
359  }
360 
361  /**
362  * @see Server#getCommandAliases()
363  */
364  public static Map<String, String[]> getCommandAliases() {
365  return server.getCommandAliases();
366  }
367 
368  /**
369  * @see Server#getSpawnRadius()
370  */
371  public static int getSpawnRadius() {
372  return server.getSpawnRadius();
373  }
374 
375  /**
376  * @see Server#setSpawnRadius(int value)
377  */
378  public static void setSpawnRadius(int value) {
379  server.setSpawnRadius(value);
380  }
381 
382  /**
383  * @see Server#getOnlineMode()
384  */
385  public static boolean getOnlineMode() {
386  return server.getOnlineMode();
387  }
388 
389  /**
390  * @see Server#getAllowFlight()
391  */
392  public static boolean getAllowFlight() {
393  return server.getAllowFlight();
394  }
395 
396  /**
397  * @see Server#isHardcore()
398  */
399  public static boolean isHardcore() {
400  return server.isHardcore();
401  }
402 
403  /**
404  * @see Server#shutdown()
405  */
406  public static void shutdown() {
407  server.shutdown();
408  }
409 
410  /**
411  * @see Server#broadcast(String message, String permission)
412  */
413  public static int broadcast(String message, String permission) {
414  return server.broadcast(message, permission);
415  }
416 
417  /**
418  * @see Server#getOfflinePlayer(String name)
419  */
420  @Deprecated
421  public static OfflinePlayer getOfflinePlayer(String name) {
422  return server.getOfflinePlayer(name);
423  }
424 
425  /**
426  * @see Server#getOfflinePlayer(java.util.UUID)
427  */
428  public static OfflinePlayer getOfflinePlayer(UUID id) {
429  return server.getOfflinePlayer(id);
430  }
431 
432  /**
433  * @see Server#getPlayerExact(String name)
434  */
435  @Deprecated
436  public static Player getPlayerExact(String name) {
437  return server.getPlayerExact(name);
438  }
439 
440  /**
441  * @see Server#getIPBans()
442  */
443  public static Set<String> getIPBans() {
444  return server.getIPBans();
445  }
446 
447  /**
448  * @see Server#banIP(String address)
449  */
450  public static void banIP(String address) {
451  server.banIP(address);
452  }
453 
454  /**
455  * @see Server#unbanIP(String address)
456  */
457  public static void unbanIP(String address) {
458  server.unbanIP(address);
459  }
460 
461  /**
462  * @see Server#getBannedPlayers()
463  */
464  public static Set<OfflinePlayer> getBannedPlayers() {
465  return server.getBannedPlayers();
466  }
467 
468  /**
469  * @see Server#getBanList(BanList.Type)
470  */
471  public static BanList getBanList(BanList.Type type){
472  return server.getBanList(type);
473  }
474 
475  /**
476  * @see Server#setWhitelist(boolean value)
477  */
478  public static void setWhitelist(boolean value) {
479  server.setWhitelist(value);
480  }
481 
482  /**
483  * @see Server#getWhitelistedPlayers()
484  */
485  public static Set<OfflinePlayer> getWhitelistedPlayers() {
486  return server.getWhitelistedPlayers();
487  }
488 
489  /**
490  * @see Server#reloadWhitelist()
491  */
492  public static void reloadWhitelist() {
493  server.reloadWhitelist();
494  }
495 
496  /**
497  * @see Server#getConsoleSender()
498  */
500  return server.getConsoleSender();
501  }
502 
503  /**
504  * @see Server#getOperators()
505  */
506  public static Set<OfflinePlayer> getOperators() {
507  return server.getOperators();
508  }
509 
510  /**
511  * @see Server#getWorldContainer()
512  */
513  public static File getWorldContainer() {
514  return server.getWorldContainer();
515  }
516 
517  /**
518  * @see Server#getMessenger()
519  */
520  public static Messenger getMessenger() {
521  return server.getMessenger();
522  }
523 
524  /**
525  * @see Server#getAllowEnd()
526  */
527  public static boolean getAllowEnd() {
528  return server.getAllowEnd();
529  }
530 
531  /**
532  * @see Server#getUpdateFolderFile()
533  */
534  public static File getUpdateFolderFile() {
535  return server.getUpdateFolderFile();
536  }
537 
538  /**
539  * @see Server#getConnectionThrottle()
540  */
541  public static long getConnectionThrottle() {
542  return server.getConnectionThrottle();
543  }
544 
545  /**
546  * @see Server#getTicksPerAnimalSpawns()
547  */
548  public static int getTicksPerAnimalSpawns() {
549  return server.getTicksPerAnimalSpawns();
550  }
551 
552  /**
553  * @see Server#getTicksPerMonsterSpawns()
554  */
555  public static int getTicksPerMonsterSpawns() {
556  return server.getTicksPerMonsterSpawns();
557  }
558 
559  /**
560  * @see Server#useExactLoginLocation()
561  */
562  public static boolean useExactLoginLocation() {
563  return server.useExactLoginLocation();
564  }
565 
566  /**
567  * @see Server#getDefaultGameMode()
568  */
569  public static GameMode getDefaultGameMode() {
570  return server.getDefaultGameMode();
571  }
572 
573  /**
574  * @see Server#setDefaultGameMode(GameMode mode)
575  */
576  public static void setDefaultGameMode(GameMode mode) {
577  server.setDefaultGameMode(mode);
578  }
579 
580  /**
581  * @see Server#getOfflinePlayers()
582  */
583  public static OfflinePlayer[] getOfflinePlayers() {
584  return server.getOfflinePlayers();
585  }
586 
587  /**
588  * @see Server#createInventory(InventoryHolder owner, InventoryType type)
589  */
591  return server.createInventory(owner, type);
592  }
593 
594  /**
595  * @see Server#createInventory(InventoryHolder owner, InventoryType type, String title)
596  */
597  public static Inventory createInventory(InventoryHolder owner, InventoryType type, String title) {
598  return server.createInventory(owner, type, title);
599  }
600 
601  /**
602  * @see Server#createInventory(InventoryHolder owner, int size)
603  */
604  public static Inventory createInventory(InventoryHolder owner, int size) {
605  return server.createInventory(owner, size);
606  }
607 
608  /**
609  * @see Server#createInventory(InventoryHolder owner, int size, String
610  * title)
611  */
612  public static Inventory createInventory(InventoryHolder owner, int size, String title) {
613  return server.createInventory(owner, size, title);
614  }
615 
616  /**
617  * @see Server#getHelpMap()
618  */
619  public static HelpMap getHelpMap() {
620  return server.getHelpMap();
621  }
622 
623  /**
624  * @see Server#getMonsterSpawnLimit()
625  */
626  public static int getMonsterSpawnLimit() {
627  return server.getMonsterSpawnLimit();
628  }
629 
630  /**
631  * @see Server#getAnimalSpawnLimit()
632  */
633  public static int getAnimalSpawnLimit() {
634  return server.getAnimalSpawnLimit();
635  }
636 
637  /**
638  * @see Server#getWaterAnimalSpawnLimit()
639  */
640  public static int getWaterAnimalSpawnLimit() {
641  return server.getWaterAnimalSpawnLimit();
642  }
643 
644  /**
645  * @see Server#getAmbientSpawnLimit()
646  */
647  public static int getAmbientSpawnLimit() {
648  return server.getAmbientSpawnLimit();
649  }
650 
651  /**
652  * @see Server#isPrimaryThread()
653  */
654  public static boolean isPrimaryThread() {
655  return server.isPrimaryThread();
656  }
657 
658  /**
659  * @see Server#getMotd()
660  */
661  public static String getMotd() {
662  return server.getMotd();
663  }
664 
665  /**
666  * @see Server#getShutdownMessage()
667  */
668  public static String getShutdownMessage() {
669  return server.getShutdownMessage();
670  }
671 
672  /**
673  * @see Server#getWarningState()
674  */
675  public static WarningState getWarningState() {
676  return server.getWarningState();
677  }
678 
679  /**
680  * @see Server#getItemFactory()
681  */
682  public static ItemFactory getItemFactory() {
683  return server.getItemFactory();
684  }
685 
686  /**
687  * @see Server#getScoreboardManager()
688  */
690  return server.getScoreboardManager();
691  }
692 
693  /**
694  * @see Server#getServerIcon()
695  */
696  public static CachedServerIcon getServerIcon() {
697  return server.getServerIcon();
698  }
699 
700  /**
701  * @see Server#loadServerIcon(File)
702  */
703  public static CachedServerIcon loadServerIcon(File file) throws Exception {
704  return server.loadServerIcon(file);
705  }
706 
707  /**
708  * @see Server#loadServerIcon(BufferedImage)
709  */
710  public static CachedServerIcon loadServerIcon(BufferedImage image) throws Exception {
711  return server.loadServerIcon(image);
712  }
713 
714  /**
715  * @see Server#setIdleTimeout(int)
716  */
717  public static void setIdleTimeout(int threshold) {
718  server.setIdleTimeout(threshold);
719  }
720 
721  /**
722  * @see Server#getIdleTimeout()
723  */
724  public static int getIdleTimeout() {
725  return server.getIdleTimeout();
726  }
727 
728  /**
729  * @see Server#getUnsafe()
730  */
731  @Deprecated
732  public static UnsafeValues getUnsafe() {
733  return server.getUnsafe();
734  }
735 }
static int getWaterAnimalSpawnLimit()
Definition: Bukkit.java:640
String getServerName()
static int getViewDistance()
Definition: Bukkit.java:115
static void banIP(String address)
Definition: Bukkit.java:450
void setDefaultGameMode(GameMode mode)
BanList getBanList(BanList.Type type)
static String getServerName()
Definition: Bukkit.java:129
static void resetRecipes()
Definition: Bukkit.java:357
static void configureDbConfig(ServerConfig config)
Definition: Bukkit.java:322
Set< OfflinePlayer > getOperators()
int broadcastMessage(String message)
MapView getMap(short id)
List< World > getWorlds()
static boolean useExactLoginLocation()
Definition: Bukkit.java:562
static int getMonsterSpawnLimit()
Definition: Bukkit.java:626
static int getTicksPerAnimalSpawns()
Definition: Bukkit.java:548
int getMonsterSpawnLimit()
boolean getAllowNether()
static Set< OfflinePlayer > getBannedPlayers()
Definition: Bukkit.java:464
int getAnimalSpawnLimit()
ScoreboardManager getScoreboardManager()
CachedServerIcon loadServerIcon(File file)
static World createWorld(WorldCreator options)
Definition: Bukkit.java:236
PluginCommand getPluginCommand(String name)
static List< Player > matchPlayer(String name)
Definition: Bukkit.java:194
static int getAmbientSpawnLimit()
Definition: Bukkit.java:647
static Set< OfflinePlayer > getWhitelistedPlayers()
Definition: Bukkit.java:485
static int getTicksPerMonsterSpawns()
Definition: Bukkit.java:555
static Set< OfflinePlayer > getOperators()
Definition: Bukkit.java:506
static MapView getMap(short id)
Definition: Bukkit.java:273
static GameMode getDefaultGameMode()
Definition: Bukkit.java:569
static void shutdown()
Definition: Bukkit.java:406
int getTicksPerMonsterSpawns()
static boolean isHardcore()
Definition: Bukkit.java:399
List< Player > matchPlayer(String name)
static void setIdleTimeout(int threshold)
Definition: Bukkit.java:717
static void setWhitelist(boolean value)
Definition: Bukkit.java:478
int getTicksPerAnimalSpawns()
static Inventory createInventory(InventoryHolder owner, int size, String title)
Definition: Bukkit.java:612
static WarningState getWarningState()
Definition: Bukkit.java:675
static int getMaxPlayers()
Definition: Bukkit.java:101
UnsafeValues getUnsafe()
boolean getOnlineMode()
static String getUpdateFolder()
Definition: Bukkit.java:178
File getWorldContainer()
static void setSpawnRadius(int value)
Definition: Bukkit.java:378
long getConnectionThrottle()
void setSpawnRadius(int value)
static boolean unloadWorld(String name, boolean save)
Definition: Bukkit.java:243
Set< String > getIPBans()
static World getWorld(String name)
Definition: Bukkit.java:257
static int getPort()
Definition: Bukkit.java:108
static OfflinePlayer getOfflinePlayer(UUID id)
Definition: Bukkit.java:428
static CachedServerIcon getServerIcon()
Definition: Bukkit.java:696
static CachedServerIcon loadServerIcon(BufferedImage image)
Definition: Bukkit.java:710
static int broadcastMessage(String message)
Definition: Bukkit.java:171
static boolean getGenerateStructures()
Definition: Bukkit.java:150
World createWorld(WorldCreator creator)
static boolean isPrimaryThread()
Definition: Bukkit.java:654
PluginManager getPluginManager()
static String getServerId()
Definition: Bukkit.java:136
static boolean addRecipe(Recipe recipe)
Definition: Bukkit.java:329
static void reloadWhitelist()
Definition: Bukkit.java:492
static Iterator< Recipe > recipeIterator()
Definition: Bukkit.java:343
Iterator< Recipe > recipeIterator()
static boolean hasWhitelist()
Definition: Bukkit.java:164
Set< OfflinePlayer > getBannedPlayers()
OfflinePlayer getOfflinePlayer(String name)
Messenger getMessenger()
static Player getPlayer(UUID id)
Definition: Bukkit.java:201
static File getUpdateFolderFile()
Definition: Bukkit.java:534
ItemFactory getItemFactory()
String getUpdateFolder()
boolean isHardcore()
static World getWorld(UUID uid)
Definition: Bukkit.java:264
static Inventory createInventory(InventoryHolder owner, InventoryType type, String title)
Definition: Bukkit.java:597
boolean useExactLoginLocation()
int getAmbientSpawnLimit()
static Map< String, String[]> getCommandAliases()
Definition: Bukkit.java:364
Player getPlayerExact(String name)
static File getWorldContainer()
Definition: Bukkit.java:513
static OfflinePlayer[] getOfflinePlayers()
Definition: Bukkit.java:583
static Server getServer()
Definition: Bukkit.java:50
World getWorld(String name)
static void setDefaultGameMode(GameMode mode)
Definition: Bukkit.java:576
static HelpMap getHelpMap()
Definition: Bukkit.java:619
int getWaterAnimalSpawnLimit()
static Inventory createInventory(InventoryHolder owner, int size)
Definition: Bukkit.java:604
static BanList getBanList(BanList.Type type)
Definition: Bukkit.java:471
boolean dispatchCommand(CommandSender sender, String commandLine)
static UnsafeValues getUnsafe()
Definition: Bukkit.java:732
boolean getAllowEnd()
void reloadWhitelist()
static PluginManager getPluginManager()
Definition: Bukkit.java:208
OfflinePlayer[] getOfflinePlayers()
boolean addRecipe(Recipe recipe)
static ItemFactory getItemFactory()
Definition: Bukkit.java:682
static String getBukkitVersion()
Definition: Bukkit.java:87
static String getMotd()
Definition: Bukkit.java:661
static String getName()
Definition: Bukkit.java:73
static String getWorldType()
Definition: Bukkit.java:143
static BukkitScheduler getScheduler()
Definition: Bukkit.java:215
boolean getGenerateStructures()
void unbanIP(String address)
static long getConnectionThrottle()
Definition: Bukkit.java:541
static String getShutdownMessage()
Definition: Bukkit.java:668
static List< World > getWorlds()
Definition: Bukkit.java:229
Inventory createInventory(InventoryHolder owner, InventoryType type)
static int getSpawnRadius()
Definition: Bukkit.java:371
static Messenger getMessenger()
Definition: Bukkit.java:520
static Player[] getOnlinePlayers()
Definition: Bukkit.java:94
static boolean dispatchCommand(CommandSender sender, String commandLine)
Definition: Bukkit.java:315
static boolean getAllowNether()
Definition: Bukkit.java:157
MapView createMap(World world)
static boolean getAllowFlight()
Definition: Bukkit.java:392
Player getPlayer(String name)
static ScoreboardManager getScoreboardManager()
Definition: Bukkit.java:689
String getServerId()
static boolean unloadWorld(World world, boolean save)
Definition: Bukkit.java:250
ConsoleCommandSender getConsoleSender()
CachedServerIcon getServerIcon()
void banIP(String address)
void setWhitelist(boolean value)
boolean hasWhitelist()
String getWorldType()
HelpMap getHelpMap()
static Inventory createInventory(InventoryHolder owner, InventoryType type)
Definition: Bukkit.java:590
static void savePlayers()
Definition: Bukkit.java:308
File getUpdateFolderFile()
static void reload()
Definition: Bukkit.java:287
static String getIp()
Definition: Bukkit.java:122
static int broadcast(String message, String permission)
Definition: Bukkit.java:413
static int getIdleTimeout()
Definition: Bukkit.java:724
static Logger getLogger()
Definition: Bukkit.java:294
static Set< String > getIPBans()
Definition: Bukkit.java:443
static void unbanIP(String address)
Definition: Bukkit.java:457
Map< String, String[]> getCommandAliases()
boolean getAllowFlight()
boolean unloadWorld(String name, boolean save)
static boolean getOnlineMode()
Definition: Bukkit.java:385
static void setServer(Server server)
Definition: Bukkit.java:61
void configureDbConfig(ServerConfig config)
String getBukkitVersion()
static CachedServerIcon loadServerIcon(File file)
Definition: Bukkit.java:703
static Player getPlayerExact(String name)
Definition: Bukkit.java:436
static OfflinePlayer getOfflinePlayer(String name)
Definition: Bukkit.java:421
static List< Recipe > getRecipesFor(ItemStack result)
Definition: Bukkit.java:336
static PluginCommand getPluginCommand(String name)
Definition: Bukkit.java:301
String getShutdownMessage()
static ConsoleCommandSender getConsoleSender()
Definition: Bukkit.java:499
WarningState getWarningState()
Logger getLogger()
Player[] getOnlinePlayers()
String getVersion()
Set< OfflinePlayer > getWhitelistedPlayers()
static int getAnimalSpawnLimit()
Definition: Bukkit.java:633
void setIdleTimeout(int threshold)
ServicesManager getServicesManager()
GameMode getDefaultGameMode()
static boolean getAllowEnd()
Definition: Bukkit.java:527
static ServicesManager getServicesManager()
Definition: Bukkit.java:222
boolean isPrimaryThread()
static void clearRecipes()
Definition: Bukkit.java:350
int broadcast(String message, String permission)
static MapView createMap(World world)
Definition: Bukkit.java:280
static Player getPlayer(String name)
Definition: Bukkit.java:186
static String getVersion()
Definition: Bukkit.java:80
BukkitScheduler getScheduler()
List< Recipe > getRecipesFor(ItemStack result)