This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
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.
Update command descriptions and add 'Test' command
This update modifies the wording on existing command descriptions to improve clarity. It also introduces a new 'Test' command. With adjustments to the CommandListener and Command.java files, this commit improves instance management and introduces exception handling. It also corrects the referenced logger name in Cherrycore.java.
- Loading branch information
1 parent
c95b698
commit 5b55ded
Showing
6 changed files
with
74 additions
and
17 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
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
44 changes: 44 additions & 0 deletions
44
src/main/java/net/cherrycraft/cherrycore/command/commands/Test.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,44 @@ | ||
/* | ||
* (c) 2024 CherryCraft. All rights reserved. | ||
* | ||
* This software is the confidential and proprietary information of CherryCraft | ||
* ("Confidential Information"). You shall not disclose such Confidential Information | ||
* and shall use it only in accordance with the terms of the license agreement you | ||
* entered into with CherryCraft. | ||
* | ||
* UNAUTHORIZED COPYING, DISTRIBUTION, OR REPRODUCTION OF THIS SOFTWARE, IN WHOLE OR | ||
* IN PART, IS STRICTLY PROHIBITED. UNLESS OTHERWISE EXPRESSLY AGREED UPON IN A | ||
* WRITTEN AGREEMENT, CHERRYCRAFT PROVIDES THIS SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY | ||
* KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
* WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR | ||
* NON-INFRINGEMENT. | ||
* | ||
* For inquiries, please contact CherryCraft at [email protected]. | ||
*/ | ||
|
||
package net.cherrycraft.cherrycore.command.commands; | ||
|
||
import net.cherrycraft.cherrycore.manager.Command; | ||
import org.bukkit.command.CommandSender; | ||
|
||
public class Test extends Command { | ||
public Test(String commandName) { | ||
super("test"); | ||
} | ||
|
||
@Override | ||
public boolean execute(CommandSender sender, String[] args) { | ||
System.out.println("Test execute"); | ||
return true; | ||
} | ||
|
||
@Override | ||
public String getPermission() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getPermissionMessage() { | ||
return null; | ||
} | ||
} |
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