This commit is contained in:
jslightham
2019-06-10 15:13:36 -04:00
commit 6115bb92a1
218 changed files with 7026 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
package com.jslightham.plugin1;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.plugin.java.JavaPlugin;
import com.jslightham.plugin1.commands.HelloCommand;
public class Main extends JavaPlugin{
public int time = 2;
private Time t = new Time(this);
public static void main(String[] args) {
}
@Override
public void onEnable() {
t.getTime();
this.getCommand("test").setExecutor((CommandExecutor)new HelloCommand());
this.getCommand("healme").setExecutor((CommandExecutor)new CommandClass());
}
@Override
public void onDisable() {
}
}

View File

@@ -0,0 +1,22 @@
package com.jslightham.plugin1;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class CommandClass implements CommandExecutor{
@Override
public boolean onCommand(CommandSender sender, Command command, String arg2, String[] arg3) {
if(command.getName().equals("heal")) {
if(sender instanceof Player) {
Player player = (Player) sender;
}else {
System.out.println("Command may only be executed by players. ");
}
}
return true;
}
}

View File

@@ -0,0 +1,10 @@
package com.jslightham.plugin1;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
}
}

View File

@@ -0,0 +1,23 @@
package com.jslightham.plugin1;
import org.bukkit.command.CommandExecutor;
import org.bukkit.plugin.java.JavaPlugin;
import com.jslightham.plugin1.commands.HelloCommand;
public class Main extends JavaPlugin{
public static void main(String[] args) {
}
@Override
public void onEnable() {
this.getCommand("test").setExecutor((CommandExecutor)new HelloCommand());
}
@Override
public void onDisable() {
}
}

View File

@@ -0,0 +1,26 @@
package com.jslightham.plugin1;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.plugin.java.JavaPlugin;
import com.jslightham.plugin1.commands.HelloCommand;
public class Main extends JavaPlugin{
public int time = 2;
public static void main(String[] args) {
}
@Override
public void onEnable() {
this.getCommand("test").setExecutor((CommandExecutor)new HelloCommand());
}
@Override
public void onDisable() {
}
}

View File

@@ -0,0 +1,17 @@
package com.jslightham.plugin1;
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin{
public static void main(String[] args) {
}
public void onEnable() {
}
public void onDisable() {
}
}

View File

@@ -0,0 +1,12 @@
package com.jslightham.plugin1;
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin{
public static void main(String[] args) {
}
}

View File

@@ -0,0 +1,5 @@
package com.jslightham.plugin1;
public class Time {
}

View File

@@ -0,0 +1,27 @@
package com.jslightham.plugin1;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.plugin.java.JavaPlugin;
import com.jslightham.plugin1.commands.HelloCommand;
public class Main extends JavaPlugin{
public int time = 2;
private Time t = new Time(this);
public static void main(String[] args) {
}
@Override
public void onEnable() {
this.getCommand("test").setExecutor((CommandExecutor)new HelloCommand());
}
@Override
public void onDisable() {
}
}

View File

@@ -0,0 +1,5 @@
package com.jslightham.plugin1.commands;
public class HelloCommand {
}

View File

@@ -0,0 +1,25 @@
package com.jslightham.plugin1;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class CommandClass implements CommandExecutor{
@Override
public boolean onCommand(CommandSender sender, Command command, String arg2, String[] arg3) {
if(command.getName().equals("heal")) {
if(sender instanceof Player) {
Player player = (Player) sender;
if(arg3.length > 0 && arg3[0] instaceof Integer) {
}
}else {
System.out.println("Command may only be executed by players. ");
}
}
return true;
}
}

View File

@@ -0,0 +1,22 @@
package com.jslightham.plugin1.commands;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.jslightham.plugin1.Main;
public class HelloCommand implements CommandExecutor{
@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
Player player = (Player) sender;
if(sender instanceof Player)
player.sendMessage("Hello there");
return true;
}
}

View File

@@ -0,0 +1,27 @@
package com.jslightham.plugin1;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.plugin.java.JavaPlugin;
import com.jslightham.plugin1.commands.HelloCommand;
public class Main extends JavaPlugin{
public int time = 2;
private Time time = new Time(this);
public static void main(String[] args) {
}
@Override
public void onEnable() {
this.getCommand("test").setExecutor((CommandExecutor)new HelloCommand());
}
@Override
public void onDisable() {
}
}

View File

@@ -0,0 +1,28 @@
package com.jslightham.plugin1;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.plugin.java.JavaPlugin;
import com.jslightham.plugin1.commands.HelloCommand;
public class Main extends JavaPlugin{
public int time = 2;
private Time t = new Time(this);
public static void main(String[] args) {
}
@Override
public void onEnable() {
t.getTime();
this.getCommand("test").setExecutor((CommandExecutor)new HelloCommand());
this.getCommand("heal").setExecutor((CommandExecutor)new CommandClass());
}
@Override
public void onDisable() {
}
}

View File

@@ -0,0 +1,27 @@
package com.jslightham.plugin1.commands;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.jslightham.plugin1.Main;
public class HelloCommand implements CommandExecutor{
private Main plugin;
public HelloCommand(Main plugin) {
this.plugin = plugin;
}
@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
Player player = (Player) sender;
if(sender instanceof Player)
player.sendMessage("Hello there");
return true;
}
}

View File

@@ -0,0 +1,25 @@
package com.jslightham.plugin1.commands;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.jslightham.plugin1.Main;
public class HelloCommand implements CommandExecutor{
private Main plugin;
public HelloCommand(Main plugin) {
this.plugin = plugin;
}
@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
Player player = (Player) sender;
return true;
}
}

View File

@@ -0,0 +1,29 @@
package com.jslightham.plugin1;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class CommandClass implements CommandExecutor{
@Override
public boolean onCommand(CommandSender sender, Command command, String arg2, String[] arg3) {
if(command.getName().equals("heal")) {
if(sender instanceof Player) {
Player player = (Player) sender;
if(arg3.length > 0) {
try {
player.setHealth(Integer.parseInt(arg3[0]));
}catch (Exception e) {
player.sendMessage("That is not a valid health!");
}
}
}else {
System.out.println("Command may only be executed by players. ");
}
}
return true;
}
}

View File

@@ -0,0 +1,5 @@
package com.jslightham.plugin1;
public class CommandClass {
}

View File

@@ -0,0 +1,25 @@
package com.jslightham.plugin1;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class CommandClass implements CommandExecutor{
@Override
public boolean onCommand(CommandSender sender, Command command, String arg2, String[] arg3) {
if(command.getName().equals("heal")) {
if(sender instanceof Player) {
Player player = (Player) sender;
if(arg3.length > 0) {
}
}else {
System.out.println("Command may only be executed by players. ");
}
}
return true;
}
}

View File

@@ -0,0 +1,20 @@
package com.jslightham.plugin1.commands;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class HelloCommand implements CommandExecutor{
@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
Player player = (Player) sender;
if(sender instanceof Player)
player.sendMessage("Hello there");
return true;
}
}

View File

@@ -0,0 +1,27 @@
package com.jslightham.plugin1;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.plugin.java.JavaPlugin;
import com.jslightham.plugin1.commands.HelloCommand;
public class Main extends JavaPlugin{
public int time = 2;
private Time t = new Time(this);
public static void main(String[] args) {
}
@Override
public void onEnable() {
t.getTime();
this.getCommand("test").setExecutor((CommandExecutor)new HelloCommand());
}
@Override
public void onDisable() {
}
}

View File

@@ -0,0 +1,25 @@
package com.jslightham.plugin1;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.plugin.java.JavaPlugin;
import com.jslightham.plugin1.commands.HelloCommand;
public class Main extends JavaPlugin{
public static void main(String[] args) {
}
@Override
public void onEnable() {
this.getCommand("test").setExecutor((CommandExecutor)new HelloCommand());
}
@Override
public void onDisable() {
}
}

View File

@@ -0,0 +1,20 @@
package com.jslightham.plugin1;
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin{
public static void main(String[] args) {
}
@Override
public void onEnable() {
this.getCommand("test").setExecutor((CommandExecutor)new HelloCommand());
}
@Override
public void onDisable() {
}
}

View File

@@ -0,0 +1,20 @@
package com.jslightham.plugin1;
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin{
public static void main(String[] args) {
}
@Override
public void onEnable() {
}
@Override
public void onDisable() {
}
}

View File

@@ -0,0 +1,8 @@
name: Plugin1
version: 1.0
main: com.jslightham.plugin1.Main
description: Test1!
commands:
test:
usage: /<command>

View File

@@ -0,0 +1,23 @@
package com.jslightham.plugin1;
import org.bukkit.command.CommandExecutor;
import org.bukkit.plugin.java.JavaPlugin;
import com.jslightham.plugin1.commands.HelloCommand;
public class Main extends JavaPlugin{
public static void main(String[] args) {
}
@Override
public void onEnable() {
this.getCommand("test").setExecutor((CommandExecutor)new HelloCommand());
}
@Override
public void onDisable() {
}
}

View File

@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8

View File

@@ -0,0 +1,10 @@
name: Plugin1
version: 1.0
main: com.jslightham.plugin1.Main
description: Test1!
commands:
test:
usage: /<command>
heal:
usage: /<command>

View File

@@ -0,0 +1,25 @@
package com.jslightham.plugin1;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class CommandClass implements CommandExecutor{
@Override
public boolean onCommand(CommandSender sender, Command command, String arg2, String[] arg3) {
if(command.getName().equals("heal")) {
if(sender instanceof Player) {
Player player = (Player) sender;
if(arg3.length > 0 && arg3[0] instaceof int) {
}
}else {
System.out.println("Command may only be executed by players. ");
}
}
return true;
}
}

View File

@@ -0,0 +1,8 @@
name: Plugin1
version: 1.0
main: com.jslightham.plugin1.Main
description: Test1!
commands:
test:
usage: /<command>

View File

@@ -0,0 +1,19 @@
package com.jslightham.plugin1;
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin{
public static void main(String[] args) {
}
public void onEnable() {
}
public void onDisable() {
}
}

View File

@@ -0,0 +1,29 @@
package com.jslightham.plugin1;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class CommandClass implements CommandExecutor{
@Override
public boolean onCommand(CommandSender sender, Command command, String arg2, String[] arg3) {
if(command.getName().equals("heal")) {
if(sender instanceof Player) {
Player player = (Player) sender;
if(arg3.length > 0) {
try {
player.setHealth(Integer.parseInt(arg3[0]));
}catch (Exception e) {
}
}
}else {
System.out.println("Command may only be executed by players. ");
}
}
return true;
}
}

Binary file not shown.