-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added generalcommands for console commands
- Loading branch information
Jacob S
committed
Jul 21, 2021
1 parent
71750e1
commit 816fab0
Showing
4 changed files
with
39 additions
and
128 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
src/main/java/me/jakedadream/ParadisuPlugin/commands/generalcommands.java
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,33 @@ | ||
package me.jakedadream.ParadisuPlugin.commands; | ||
|
||
import org.bukkit.Bukkit; | ||
import org.bukkit.ChatColor; | ||
import org.bukkit.command.Command; | ||
import org.bukkit.command.CommandExecutor; | ||
import org.bukkit.command.CommandSender; | ||
import org.bukkit.command.ConsoleCommandSender; | ||
import org.bukkit.entity.Player; | ||
|
||
public class generalcommands implements CommandExecutor { | ||
|
||
private String getParsedName(String[] args) { | ||
String name = ""; | ||
|
||
// Concat all the args to a string | ||
for (int i = 0; i < args.length; i++) { | ||
name = name.concat(args[i]); | ||
name = name.concat(" "); | ||
} | ||
return ChatColor.translateAlternateColorCodes('&', name); | ||
} | ||
|
||
|
||
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { | ||
|
||
|
||
// commands done by console & players | ||
|
||
|
||
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
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
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