Removed example plugin.
This commit is contained in:
@@ -1,50 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<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.redstoner</groupId>
|
|
||||||
<artifactId>CommandManagerExample</artifactId>
|
|
||||||
<version>0.1</version>
|
|
||||||
|
|
||||||
<packaging>jar</packaging>
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<repositories>
|
|
||||||
<repository>
|
|
||||||
<id>spigot-repo</id>
|
|
||||||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<!--Spigot API-->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.spigotmc</groupId>
|
|
||||||
<artifactId>spigot-api</artifactId>
|
|
||||||
<version>1.12.2-R0.1-SNAPSHOT</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
<!--Bukkit API-->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.bukkit</groupId>
|
|
||||||
<artifactId>bukkit</artifactId>
|
|
||||||
<version>1.12.2-R0.1-SNAPSHOT</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.redstoner</groupId>
|
|
||||||
<artifactId>CommandManager</artifactId>
|
|
||||||
<version>1.0</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
|
|
||||||
</project>
|
|
||||||
@@ -1,66 +0,0 @@
|
|||||||
package com.nemez.cmdMgrExample;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
|
||||||
|
|
||||||
import com.nemez.cmdmgr.Command;
|
|
||||||
import com.nemez.cmdmgr.CommandManager;
|
|
||||||
|
|
||||||
public class CmdMgrExample extends JavaPlugin {
|
|
||||||
|
|
||||||
public void onEnable() {
|
|
||||||
CommandManager.registerCommand(new File("plugins/example.cmd"), this, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onDisable() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Command(hook="home_empty")
|
|
||||||
public boolean executeHomeNull(CommandSender sender) {
|
|
||||||
sender.sendMessage("You executed an empty /home");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Command(hook="home_set")
|
|
||||||
public boolean executeSetHome(CommandSender sender, String name) {
|
|
||||||
sender.sendMessage("You executed:");
|
|
||||||
sender.sendMessage("/home set " + name);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Command(hook="home_set_coords")
|
|
||||||
public boolean executeSetHomeBasedOnCoords(CommandSender sender, String name, int x, int y, int z) {
|
|
||||||
sender.sendMessage("You executed:");
|
|
||||||
sender.sendMessage("/home set " + name + " " + x + " " + y + " " + z);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Command(hook="home_del")
|
|
||||||
public void executeDelHome(CommandSender sender, String name, boolean aFlag) {
|
|
||||||
sender.sendMessage("You executed:");
|
|
||||||
sender.sendMessage("/home del " + name);
|
|
||||||
sender.sendMessage("-a - " + aFlag);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Command(hook="home_list")
|
|
||||||
public void executeListHomes(CommandSender sender) {
|
|
||||||
sender.sendMessage("You executed:");
|
|
||||||
sender.sendMessage("/home list");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Command(hook="home_tp")
|
|
||||||
public void executeTeleportHome(CommandSender sender, String name) {
|
|
||||||
sender.sendMessage("You executed:");
|
|
||||||
sender.sendMessage("/home " + name);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Command(hook="noskope")
|
|
||||||
public boolean executeMagik(CommandSender sender) {
|
|
||||||
sender.sendMessage("You executed!!!!!!!!!:");
|
|
||||||
sender.sendMessage("/home yolo swag");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
|
|
||||||
command home {
|
|
||||||
alias h;
|
|
||||||
alias bleh;
|
|
||||||
set [string:name] {
|
|
||||||
[int:x] [int:y] [int:z] {
|
|
||||||
run home_set_coords name x y z;
|
|
||||||
perm home.set.xyz;
|
|
||||||
help Sets a new home at coordinates XYZ;
|
|
||||||
}
|
|
||||||
run home_set name;
|
|
||||||
perm home.set;
|
|
||||||
help Sets a new home;
|
|
||||||
type none;
|
|
||||||
}
|
|
||||||
del [optional:-a] [string:name] {
|
|
||||||
run home_del name -a;
|
|
||||||
help Deletes a home\n&cCannot be undone!;
|
|
||||||
perm home.del;
|
|
||||||
}
|
|
||||||
list {
|
|
||||||
help Shows all homes;
|
|
||||||
run home_list;
|
|
||||||
perm home.list;
|
|
||||||
}
|
|
||||||
[string:name] {
|
|
||||||
perm home.tp;
|
|
||||||
help Teleports to a home;
|
|
||||||
run home_tp name;
|
|
||||||
}
|
|
||||||
yolo swag {
|
|
||||||
perm yo.mamma;
|
|
||||||
help Reks you;
|
|
||||||
run noskope;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
name: CommandManagerTest
|
|
||||||
main: com.nemez.cmdMgrExample.CmdMgrExample
|
|
||||||
version: 13.37
|
|
||||||
author: Nemes
|
|
||||||
Reference in New Issue
Block a user