Anonymous avatar Anonymous committed 89d50d5

hello world

Comments (0)

Files changed (5)

+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>com.zzzcomputing.bukkit</groupId>
+  <artifactId>ZeekTools</artifactId>
+  <version>0.0.1-SNAPSHOT</version>
+  <packaging>jar</packaging>
+  <description>Provides some SPC-like features to Bukkit</description>
+
+  <name>ZeekTools</name>
+  <url>http://bitbucket.org/zzzeek/ZeekTools</url>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <dependencies>
+  	<dependency>
+  		<groupId>org.bukkit</groupId>
+  		<artifactId>bukkit</artifactId>
+  		<version>0.0.1-SNAPSHOT</version>
+  	</dependency>
+  	<dependency>
+  		<groupId>com.nijikokun.bukkit</groupId>
+  		<artifactId>Permissions</artifactId>
+  		<version>[2.5.2,)</version>
+  	</dependency>
+  </dependencies>
+</project>

src/main/java/com/zzzcomputing/bukkit/ZeekTools/ZeekTools.java

+package com.zzzcomputing.bukkit.ZeekTools;
+
+import org.bukkit.plugin.java.JavaPlugin;
+
+import com.zzzcomputing.bukkit.ZeekTools.util.Logger;
+
+
+public class ZeekTools extends JavaPlugin {
+
+    public void onDisable() {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void onEnable() {
+        Logger.info("ZeekTools online hooray !");
+    }
+
+}

src/main/java/com/zzzcomputing/bukkit/ZeekTools/util/Logger.java

+package com.zzzcomputing.bukkit.ZeekTools.util;
+
+import java.util.logging.Level;
+
+public class Logger {
+    static final java.util.logging.Logger logger = java.util.logging.Logger.getLogger("Minecraft");
+
+    static final String PREFIX = "[ZeekTools]";
+    
+    public static void severe(String string, Exception ex) {
+        logLevel(Level.SEVERE, string, ex);
+    }
+
+    public static void severe(String string) {
+        logLevel(Level.SEVERE, string);
+    }
+
+    public static void info(String string) {
+        logLevel(Level.INFO, string);
+    }
+
+    public static void warning(String string) {
+        logLevel(Level.WARNING, string);
+    }
+
+    private static void logLevel(Level loglevel, String txt) {
+        logger.log(loglevel, PREFIX + " " + txt);
+    }
+    
+    private static void logLevel(Level loglevel, String txt, Exception e) {
+        logger.log(loglevel, PREFIX + " " + txt + " " + e.getMessage(), e);
+    }
+    
+}
+
Add a comment to this file

src/resources/config.yml

Empty file added.

src/resources/plugin.yml

+name: ZeekTools
+main: com.zzzcomputing.bukkit.ZeekTools.ZeekTools
+version: 0.0.1
+website: www.bukkit.org
+description: Provides some SPC-like features to Bukkit.
+author: zzzeek
+commands:
+    zt:
+        description: ZeekTools commands
+        usage: |
+            /<command> give <name_or_id> [num] [player] - Give item.
+            /<command> goto <x> <y> <z> - goto coordinates
+            /<command> goto <waypoint> - goto saved waypoint
+            /<command> goto spawn - goto spawn point/bed
+            /<command> list waypoints - list waypoints
+            /<command> set <waypoint> - set waypoint
+            /<command> del <waypoint> - delete waypoint
+ 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.