RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SettingWriter.java
1package com.osroyale.content.writer.impl;
2
3import com.osroyale.game.world.entity.mob.player.Player;
4import com.osroyale.content.writer.InterfaceWriter;
5
31
32public class SettingWriter extends InterfaceWriter {
33 private String[] text = {
34 "",
35 "</col>Welcome screen: " + format(player.settings.welcomeScreen),
36 "</col>TriviaBot: " + format(player.settings.triviaBot),
37 "</col>Global yell: " + format(player.settings.yell),
38 "</col>Drop notification: " + format(player.settings.dropNotification),
39 "</col>Untradeables notification: " + format(player.settings.untradeableNotification),
40 "</col>Prestige colors: " + format(player.settings.prestigeColors),
41 "</col>Screenshot kills: " + format(player.settings.screenshotKill),
42 "",
43 };
44
45 public SettingWriter(Player player) {
46 super(player);
47 }
48
49 private String format(boolean parameter) {
50 return parameter ? "<col=47781F>Enabled" : "<col=F02E2E>Disabled";
51 }
52
53 @Override
54 protected int startingIndex() {
55 return 51011;
56 }
57
58 @Override
59 protected String[] text() {
60 return text;
61 }
62
63 @Override
64 protected int[][] color() {
65 return null;
66 }
67
68 @Override
69 protected int[][] font() {
70 return null;
71 }
72}