-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a463aaa
Showing
8 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module type="JAVA_MODULE" version="4"> | ||
<component name="FacetManager"> | ||
<facet type="minecraft" name="Minecraft"> | ||
<configuration> | ||
<autoDetectTypes> | ||
<platformType>SPIGOT</platformType> | ||
</autoDetectTypes> | ||
</configuration> | ||
</facet> | ||
</component> | ||
<component name="NewModuleRootManager" inherit-compiler-output="true"> | ||
<exclude-output /> | ||
<content url="file://$MODULE_DIR$"> | ||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> | ||
</content> | ||
<orderEntry type="inheritedJdk" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
<orderEntry type="module-library"> | ||
<library> | ||
<CLASSES> | ||
<root url="jar://$MODULE_DIR$/../spigot-1.14.4.jar!/" /> | ||
</CLASSES> | ||
<JAVADOC /> | ||
<SOURCES> | ||
<root url="jar://$MODULE_DIR$/../spigot-1.14.4.jar!/" /> | ||
</SOURCES> | ||
</library> | ||
</orderEntry> | ||
</component> | ||
</module> |
Binary file not shown.
Binary file added
BIN
+1.72 KB
out/production/VoidNetworkCore/org/jacob/spigot/plugins/VNC/AnnounceCommand.class
Binary file not shown.
Binary file added
BIN
+653 Bytes
out/production/VoidNetworkCore/org/jacob/spigot/plugins/VNC/Main.class
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: VoidNetworkCore | ||
main: org.jacob.spigot.plugins.VNC.Main | ||
version: 1.0 | ||
api-version: "1.13" | ||
commands: | ||
announce: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package org.jacob.spigot.plugins.VNC; | ||
|
||
import net.md_5.bungee.api.ChatColor; | ||
import org.bukkit.Bukkit; | ||
import org.bukkit.command.Command; | ||
import org.bukkit.command.CommandExecutor; | ||
import org.bukkit.command.CommandSender; | ||
|
||
public class AnnounceCommand implements CommandExecutor { | ||
@Override | ||
public boolean onCommand(CommandSender commandSender, Command command, String s, String[] strings) { | ||
|
||
if(s.equalsIgnoreCase("announce")) { | ||
|
||
if(!commandSender.hasPermission("vnc.announce")) { | ||
commandSender.sendMessage(ChatColor.RED + "No permissions!"); | ||
return true; | ||
} | ||
|
||
if(strings.length == 0) { | ||
commandSender.sendMessage(ChatColor.RED + "Usage: /announce <message>"); | ||
return true; | ||
} | ||
|
||
String message = ""; | ||
for (int i = 0; i < strings.length; i++) { | ||
message = message + strings[i] + " "; | ||
} | ||
|
||
Bukkit.broadcastMessage(ChatColor.RED + "[Voidnetwork MC] " + ChatColor.DARK_GRAY + ">> " + ChatColor.GRAY + message); | ||
|
||
} | ||
|
||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.jacob.spigot.plugins.VNC; | ||
|
||
import org.bukkit.plugin.java.JavaPlugin; | ||
|
||
public class Main extends JavaPlugin { | ||
|
||
@Override | ||
public void onEnable() { | ||
|
||
getCommand("announce").setExecutor(new AnnounceCommand()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: VoidNetworkCore | ||
main: org.jacob.spigot.plugins.VNC.Main | ||
version: 1.0 | ||
api-version: "1.13" | ||
commands: | ||
announce: |