Package ch.njol.skript.util

Examples of ch.njol.skript.util.Date


            current.changelog = "- " + StringEscapeUtils.unescapeHtml("" + cl).replace("<br>", "").replace("<p>", "").replace("</p>", "").replaceAll("\n(?!\n)", "\n- ");
          } else if (element.equalsIgnoreCase("pubDate")) {
            if (current == null)
              continue;
            synchronized (RFC2822) { // to make FindBugs shut up
              current.date = new Date(RFC2822.parse(reader.nextEvent().asCharacters().getData()).getTime());
            }
          }
        }
      }
    } catch (final IOException e) {
View Full Code Here


  static ScriptInfo loadScripts() {
    final File scriptsFolder = new File(Skript.getInstance().getDataFolder(), Skript.SCRIPTSFOLDER + File.separator);
    if (!scriptsFolder.isDirectory())
      scriptsFolder.mkdirs();
   
    final Date start = new Date();
   
    final ScriptInfo i;
   
    final ErrorDescLogHandler h = SkriptLogger.startLogHandler(new ErrorDescLogHandler(null, null, m_no_errors.toString()));
    try {
      Language.setUseLocal(false);
     
      i = loadScripts(scriptsFolder);
     
      synchronized (loadedScripts) {
        loadedScripts.add(i);
      }
    } finally {
      Language.setUseLocal(true);
      h.stop();
    }
   
    if (i.files == 0)
      Skript.warning(m_no_scripts.toString());
    if (Skript.logNormal() && i.files > 0)
      Skript.info(m_scripts_loaded.toString(i.files, i.triggers, i.commands, start.difference(new Date())));
   
    SkriptEventHandler.registerBukkitEvents();
   
    return i;
  }
View Full Code Here

        (byte) 127, (short) 2000, -1600000, 1L << 40, -1.5f, 13.37,
        "String",
       
        // Skript
        Color.BLACK, StructureType.RED_MUSHROOM, WeatherType.THUNDER,
        new Date(System.currentTimeMillis()), new Timespan(1337), new Time(12000), new Timeperiod(1000, 23000),
        new Experience(15), new Direction(0, Math.PI, 10), new Direction(new double[] {0, 1, 0}),
        new EntityType(new SimpleEntityData(HumanEntity.class), 300), new CreeperData(), new SimpleEntityData(Snowball.class), new HorseData(Variant.SKELETON_HORSE), new WolfData(), new XpOrbData(50),
       
        // Bukkit - simple classes only
        GameMode.ADVENTURE, Biome.EXTREME_HILLS, DamageCause.FALL,
View Full Code Here

    return true;
  }
 
  @Override
  protected Date[] get(final Event e) {
    return new Date[] {new Date()};
  }
View Full Code Here

TOP

Related Classes of ch.njol.skript.util.Date

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.