RuneHive-Game
Loading...
Searching...
No Matches
SettingWriter.java
Go to the documentation of this file.
1package com.runehive.content.writer.impl;
2
3import com.runehive.game.world.entity.mob.player.Player;
4import com.runehive.content.writer.InterfaceWriter;
5
6/**
7 * Class handles writing on the server settings itemcontainer.
8 *
9 * @author Daniel
10 */
11public class SettingWriter extends InterfaceWriter {
12 private String[] text = {
13 "",
14 "</col>Welcome screen: " + format(player.settings.welcomeScreen),
15 "</col>TriviaBot: " + format(player.settings.triviaBot),
16 "</col>Global yell: " + format(player.settings.yell),
17 "</col>Drop notification: " + format(player.settings.dropNotification),
18 "</col>Untradeables notification: " + format(player.settings.untradeableNotification),
19 "</col>Prestige colors: " + format(player.settings.prestigeColors),
20 "</col>Screenshot kills: " + format(player.settings.screenshotKill),
21 "",
22 };
23
25 super(player);
26 }
27
28 private String format(boolean parameter) {
29 return parameter ? "<col=47781F>Enabled" : "<col=F02E2E>Disabled";
30 }
31
32 @Override
33 protected int startingIndex() {
34 return 51011;
35 }
36
37 @Override
38 protected String[] text() {
39 return text;
40 }
41
42 @Override
43 protected int[][] color() {
44 return null;
45 }
46
47 @Override
48 protected int[][] font() {
49 return null;
50 }
51}
This class represents a character controlled by a player.
Definition Player.java:125