-
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.
+ Added setNoPermissionMessage(String) + Added IMessageSender interface allowing for replacing messages + Added IMessageSender for no permission and disallowed sender messages * Changed out some for loops with java streams
- Loading branch information
Showing
5 changed files
with
94 additions
and
20 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
9 changes: 9 additions & 0 deletions
9
src/net/zeeraa/zcommandlib/command/messages/IMessageSender.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,9 @@ | ||
package net.zeeraa.zcommandlib.command.messages; | ||
|
||
import org.bukkit.command.CommandSender; | ||
|
||
import net.zeeraa.zcommandlib.command.base.ZCommandBase; | ||
|
||
public interface IMessageSender { | ||
void sendMessage(ZCommandBase command, CommandSender sender, String message); | ||
} |
13 changes: 13 additions & 0 deletions
13
src/net/zeeraa/zcommandlib/command/messages/implementation/DefaultChatMessageSender.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,13 @@ | ||
package net.zeeraa.zcommandlib.command.messages.implementation; | ||
|
||
import org.bukkit.command.CommandSender; | ||
|
||
import net.zeeraa.zcommandlib.command.base.ZCommandBase; | ||
import net.zeeraa.zcommandlib.command.messages.IMessageSender; | ||
|
||
public class DefaultChatMessageSender implements IMessageSender { | ||
@Override | ||
public void sendMessage(ZCommandBase command, CommandSender sender, String message) { | ||
sender.sendMessage(message); | ||
} | ||
} |
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