Bot dialogue now always starts with uppercase character

Fixed hard-coded server name references
Replaced incorrect use of "Keldagrim" with "Gielinor"
This commit is contained in:
Player Name
2023-12-29 00:50:26 +00:00
committed by Ryan
parent 9d19ce2355
commit ece16af7ab
40 changed files with 161 additions and 150 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ import core.tools.StringUtils;
import core.api.utils.Vector;
/**
* Represents a node which is anything that is interactable in Keldagrim.
* Represents a node which is anything that is interactable in 2009Scape.
* @author Emperor
*/
public abstract class Node {
@@ -113,7 +113,7 @@ public final class LoginConfiguration {
player.getPacketDispatch().sendString("Credits", 378, 94);
player.getPacketDispatch().sendString(player.getDetails().getCredits() + "", 378, 96);
player.getPacketDispatch().sendString(" ", 378, 229);
player.getPacketDispatch().sendString("Want to contribute to 2009scape? <br>Visit the github using the link below!", 378, 230);
player.getPacketDispatch().sendString("Want to contribute to " + ServerConstants.SERVER_NAME + "? <br>Visit the GitLab using the link below!", 378, 230);
player.getPacketDispatch().sendString(" ", 378, 231);
player.getPacketDispatch().sendString("Github", 378, 240);
player.getPacketDispatch().sendString(GameWorld.getSettings().getMessage_string(), messModel, getMessageChild(messModel));
@@ -1,5 +1,6 @@
package core.game.system.communication;
import core.ServerConstants;
import core.game.component.Component;
import core.game.activity.ActivityPlugin;
import core.game.node.entity.player.Player;
@@ -100,7 +101,7 @@ public final class ClanRepository {
* @return {@code True} if the player successfully entered the clan chat.
*/
public boolean enter(Player player) {
if (!owner.equals("2009scape") && players.size() >= MAX_MEMBERS) {
if (!owner.equals(ServerConstants.SERVER_NAME.toLowerCase()) && players.size() >= MAX_MEMBERS) {
player.getPacketDispatch().sendMessage("The channel you tried to join is full.:clan:");
return false;
}