Esempio n. 1
0
 void loadData() {
   this.config = plugin.getConfig();
   this.offlineMessage = config.getString("offline-message");
   this.showOfflineMsg = config.getBoolean("show-offline-message");
   this.interval = config.getInt("interval");
   this.timeout = config.getInt("timeout");
   this.signsPerTick = config.getInt("sign-updates");
   this.cooldown = config.getInt("cooldown");
   this.debugmode = config.getBoolean("debug");
   signLayouts = loadLayouts();
   servers = loadServers();
   loadSigns();
   checkSigns();
 }
Esempio n. 2
0
 protected PluginData(TeleportSigns plugin) {
   this.plugin = plugin;
   database = plugin.getDatabase();
   this.config = plugin.getConfig();
   plugin.saveDefaultConfig();
 }