mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 14:38:58 +00:00
Fix up javadocs
This commit is contained in:
1 parent
0d8f65fc8e
commit
3f673a4ba0
4 files changed
+19
-26
No files matched your search
@@ -193,7 +193,7 @@ public class TownyChatFormatter {
|
|||||||
* @param resident
|
* @param resident
|
||||||
* @param override use full names if no tag is present
|
* @param override use full names if no tag is present
|
||||||
* @param full Only use full names (no tags).
|
* @param full Only use full names (no tags).
|
||||||
* @return
|
* @return string containing the correctly formatted nation/town data
|
||||||
*/
|
*/
|
||||||
public static String formatTownyTag(Resident resident, Boolean override, Boolean full) {
|
public static String formatTownyTag(Resident resident, Boolean override, Boolean full) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ public abstract class Channel {
|
|||||||
return craftIRCTag;
|
return craftIRCTag;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @param permission the permission to set
|
* @param craftIRCTag the CraftIRC channel Tag to set
|
||||||
*/
|
*/
|
||||||
public void setCraftIRCTag(String craftIRCTag) {
|
public void setCraftIRCTag(String craftIRCTag) {
|
||||||
this.craftIRCTag = craftIRCTag;
|
this.craftIRCTag = craftIRCTag;
|
||||||
|
|||||||
@@ -176,60 +176,56 @@ class tag_formats extends chat_colours{
|
|||||||
private static String WorldTag, TownTag, NationTag, BothTags;
|
private static String WorldTag, TownTag, NationTag, BothTags;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the WORLD
|
* @return the World tag
|
||||||
*/
|
*/
|
||||||
public static String getWorldTag() {
|
public static String getWorldTag() {
|
||||||
return WorldTag;
|
return WorldTag;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param WORLD
|
* @param tag the World tag to set
|
||||||
* the wORLD to set
|
|
||||||
*/
|
*/
|
||||||
public static void setWorldTag(String tag) {
|
public static void setWorldTag(String tag) {
|
||||||
tag_formats.WorldTag = tag;
|
tag_formats.WorldTag = tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the TOWN
|
* @return the TownTag
|
||||||
*/
|
*/
|
||||||
public static String getTownTag() {
|
public static String getTownTag() {
|
||||||
return TownTag;
|
return TownTag;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param TOWN
|
* @param tag the TOWN tag to set
|
||||||
* the TOWN to set
|
|
||||||
*/
|
*/
|
||||||
public static void setTownTag(String tag) {
|
public static void setTownTag(String tag) {
|
||||||
tag_formats.TownTag = tag;
|
tag_formats.TownTag = tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the NATION
|
* @return NationTag
|
||||||
*/
|
*/
|
||||||
public static String getNationTag() {
|
public static String getNationTag() {
|
||||||
return NationTag;
|
return NationTag;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param NATION
|
* @param tag the NATION tag to set
|
||||||
* the NATION to set
|
|
||||||
*/
|
*/
|
||||||
public static void setNationTag(String tag) {
|
public static void setNationTag(String tag) {
|
||||||
tag_formats.NationTag = tag;
|
tag_formats.NationTag = tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the BOTH
|
* @return BothTags the nation and town tags
|
||||||
*/
|
*/
|
||||||
public static String getBothTags() {
|
public static String getBothTags() {
|
||||||
return BothTags;
|
return BothTags;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param BOTH
|
* @param tag the Nation and Town tags to set
|
||||||
* the BOTH to set
|
|
||||||
*/
|
*/
|
||||||
public static void setBothTags(String tag) {
|
public static void setBothTags(String tag) {
|
||||||
tag_formats.BothTags = tag;
|
tag_formats.BothTags = tag;
|
||||||
@@ -242,48 +238,45 @@ class chat_colours {
|
|||||||
private static String KING, MAYOR, RESIDENT;
|
private static String KING, MAYOR, RESIDENT;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the kING
|
* @return KING the KING colour
|
||||||
*/
|
*/
|
||||||
public static String getKingColour() {
|
public static String getKingColour() {
|
||||||
return KING;
|
return KING;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param KING
|
* @param colour the colour to set
|
||||||
* the KING to set
|
|
||||||
*/
|
*/
|
||||||
public static void setKingColour(String colour) {
|
public static void setKingColour(String colour) {
|
||||||
chat_colours.KING = colour;
|
chat_colours.KING = colour;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the MAYOR
|
* @return MAYOR the MAYOR colour
|
||||||
*/
|
*/
|
||||||
public static String getMayorColour() {
|
public static String getMayorColour() {
|
||||||
return MAYOR;
|
return MAYOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param MAYOR
|
* @param colour the colour to set
|
||||||
* the MAYOR to set
|
|
||||||
*/
|
*/
|
||||||
public static void setMayorColour(String colour) {
|
public static void setMayorColour(String colour) {
|
||||||
chat_colours.MAYOR = colour;
|
chat_colours.MAYOR = colour;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the RESIDENT
|
* @return RESIDENT the RESIDENT colour
|
||||||
*/
|
*/
|
||||||
public static String getResidentColour() {
|
public static String getResidentColour() {
|
||||||
return RESIDENT;
|
return RESIDENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param RESIDENT
|
* @param tag the RESIDENT colour tag to set
|
||||||
* the RESIDENT to set
|
|
||||||
*/
|
*/
|
||||||
public static void setResidentColour(String tag) {
|
public static void setResidentColour(String colour) {
|
||||||
chat_colours.RESIDENT = tag;
|
chat_colours.RESIDENT = colour;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ public class FileMgmt {
|
|||||||
*
|
*
|
||||||
* @param source
|
* @param source
|
||||||
* @param FileName
|
* @param FileName
|
||||||
* @return
|
* @return true on success
|
||||||
*/
|
*/
|
||||||
public static boolean stringToFile(String source, String FileName) {
|
public static boolean stringToFile(String source, String FileName) {
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user