-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Message Util, fixed possiable bug sky worlds
Added Message Util class so it's easier to manage all colors and messages in one location. Fixed possiable bug sky worlds where getHighestNonAirBlock could loop forever.
- Loading branch information
Showing
7 changed files
with
179 additions
and
134 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
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
21 changes: 21 additions & 0 deletions
21
src/main/java/com/zmanww/bukkit/SnowControl/MessageUtil.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,21 @@ | ||
package com.zmanww.bukkit.SnowControl; | ||
|
||
import org.bukkit.ChatColor; | ||
|
||
public class MessageUtil { | ||
public static final String RELOAD_MESSAGE = ChatColor.GREEN + "SnowControl config has been reloaded"; | ||
|
||
public static String getAddedToList(String blkName, String listName) { | ||
ChatColor msgColor = ChatColor.GREEN; | ||
blkName = ChatColor.RED + blkName; | ||
listName = ChatColor.RED + listName; | ||
return msgColor + "Added " + blkName + msgColor + " to " + listName + msgColor + " list."; | ||
} | ||
|
||
public static String getToAddToMsg(String listName) { | ||
ChatColor msgColor = ChatColor.GREEN; | ||
listName = ChatColor.RED + listName; | ||
return msgColor + "Please hit the block to add to the " + listName + msgColor + " list."; | ||
} | ||
|
||
} |
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
Oops, something went wrong.