|
30 | 30 | @ConfigComment("This config file is dynamic and saved when the server is shutdown.")
|
31 | 31 | public class Settings implements ConfigObject
|
32 | 32 | {
|
33 |
| - // --------------------------------------------------------------------- |
34 |
| - // Section: Getters and Setters |
35 |
| - // --------------------------------------------------------------------- |
36 |
| - |
37 |
| - |
38 |
| - /** |
39 |
| - * Method Settings#getFlyTimeout returns the flyTimeout of this object. |
40 |
| - * |
41 |
| - * @return the flyTimeout (type int) of this object. |
42 |
| - */ |
43 |
| - public int getFlyTimeout() |
44 |
| - { |
45 |
| - return flyTimeout; |
46 |
| - } |
47 |
| - |
48 |
| - |
49 |
| - /** |
50 |
| - * Method Settings#setFlyTimeout sets new value for the flyTimeout of this object. |
51 |
| - * @param flyTimeout new value for this object. |
52 |
| - * |
53 |
| - */ |
54 |
| - public void setFlyTimeout(int flyTimeout) |
55 |
| - { |
56 |
| - this.flyTimeout = flyTimeout; |
57 |
| - } |
58 |
| - |
59 |
| - |
60 |
| - /** |
61 |
| - * Method Settings#isFlyDisableOnLogout returns the flyDisableOnLogout of this object. |
62 |
| - * |
63 |
| - * @return the flyDisableOnLogout (type boolean) of this object. |
64 |
| - */ |
65 |
| - public boolean isFlyDisableOnLogout() |
66 |
| - { |
67 |
| - return flyDisableOnLogout; |
68 |
| - } |
69 |
| - |
70 |
| - |
71 |
| - /** |
72 |
| - * Method Settings#setFlyDisableOnLogout sets new value for the flyDisableOnLogout of this object. |
73 |
| - * @param flyDisableOnLogout new value for this object. |
74 |
| - * |
75 |
| - */ |
76 |
| - public void setFlyDisableOnLogout(boolean flyDisableOnLogout) |
77 |
| - { |
78 |
| - this.flyDisableOnLogout = flyDisableOnLogout; |
79 |
| - } |
80 |
| - |
81 |
| - |
82 |
| - /** |
83 |
| - * This method returns the disabledGameModes value. |
84 |
| - * |
85 |
| - * @return the value of disabledGameModes. |
86 |
| - */ |
87 |
| - public Set<String> getDisabledGameModes() |
88 |
| - { |
89 |
| - return disabledGameModes; |
90 |
| - } |
91 |
| - |
92 |
| - |
93 |
| - /** |
94 |
| - * This method sets the disabledGameModes value. |
95 |
| - * |
96 |
| - * @param disabledGameModes the disabledGameModes new value. |
97 |
| - */ |
98 |
| - public void setDisabledGameModes(Set<String> disabledGameModes) |
99 |
| - { |
100 |
| - this.disabledGameModes = disabledGameModes; |
101 |
| - } |
102 |
| - |
103 |
| - |
104 |
| -// --------------------------------------------------------------------- |
105 |
| -// Section: Variables |
106 |
| -// --------------------------------------------------------------------- |
107 |
| - |
108 |
| - @ConfigComment("") |
109 |
| - @ConfigComment("This allows to define timeout in seconds on which fly mode will be disabled") |
110 |
| - @ConfigComment("when player leaves its island. Zero or negative number will result in immediate") |
111 |
| - @ConfigComment("fly mode disabling.") |
112 |
| - @ConfigEntry(path = "fly-timeout") |
113 |
| - private int flyTimeout = 5; |
114 |
| - |
115 |
| - @ConfigComment("") |
116 |
| - @ConfigComment("This allows to change if players should lose their fly mode if they quit server.") |
117 |
| - @ConfigEntry(path = "logout-disable-fly") |
118 |
| - private boolean flyDisableOnLogout = false; |
119 |
| - |
120 |
| - @ConfigComment("") |
121 |
| - @ConfigComment("This list stores GameModes in which islandFly addon should not work.") |
122 |
| - @ConfigComment("To disable addon it is necessary to write its name in new line that starts with -. Example:") |
123 |
| - @ConfigComment("disabled-gamemodes:") |
124 |
| - @ConfigComment(" - BSkyBlock") |
125 |
| - @ConfigEntry(path = "disabled-gamemodes") |
126 |
| - private Set<String> disabledGameModes = new HashSet<>(); |
| 33 | + // --------------------------------------------------------------------- |
| 34 | + // Section: Getters and Setters |
| 35 | + // --------------------------------------------------------------------- |
| 36 | + |
| 37 | + |
| 38 | + /** |
| 39 | + * Method Settings#getFlyTimeout returns the flyTimeout of this object. |
| 40 | + * |
| 41 | + * @return the flyTimeout (type int) of this object. |
| 42 | + */ |
| 43 | + public int getFlyTimeout() |
| 44 | + { |
| 45 | + return flyTimeout; |
| 46 | + } |
| 47 | + |
| 48 | + |
| 49 | + /** |
| 50 | + * Method Settings#setFlyTimeout sets new value for the flyTimeout of this object. |
| 51 | + * @param flyTimeout new value for this object. |
| 52 | + * |
| 53 | + */ |
| 54 | + public void setFlyTimeout(int flyTimeout) |
| 55 | + { |
| 56 | + this.flyTimeout = flyTimeout; |
| 57 | + } |
| 58 | + |
| 59 | + |
| 60 | + /** |
| 61 | + * Method Settings#isFlyDisableOnLogout returns the flyDisableOnLogout of this object. |
| 62 | + * |
| 63 | + * @return the flyDisableOnLogout (type boolean) of this object. |
| 64 | + */ |
| 65 | + public boolean isFlyDisableOnLogout() |
| 66 | + { |
| 67 | + return flyDisableOnLogout; |
| 68 | + } |
| 69 | + |
| 70 | + |
| 71 | + /** |
| 72 | + * Method Settings#setFlyDisableOnLogout sets new value for the flyDisableOnLogout of this object. |
| 73 | + * @param flyDisableOnLogout new value for this object. |
| 74 | + * |
| 75 | + */ |
| 76 | + public void setFlyDisableOnLogout(boolean flyDisableOnLogout) |
| 77 | + { |
| 78 | + this.flyDisableOnLogout = flyDisableOnLogout; |
| 79 | + } |
| 80 | + |
| 81 | + |
| 82 | + /** |
| 83 | + * This method returns the disabledGameModes value. |
| 84 | + * |
| 85 | + * @return the value of disabledGameModes. |
| 86 | + */ |
| 87 | + public Set<String> getDisabledGameModes() |
| 88 | + { |
| 89 | + return disabledGameModes; |
| 90 | + } |
| 91 | + |
| 92 | + |
| 93 | + /** |
| 94 | + * This method sets the disabledGameModes value. |
| 95 | + * |
| 96 | + * @param disabledGameModes the disabledGameModes new value. |
| 97 | + */ |
| 98 | + public void setDisabledGameModes(Set<String> disabledGameModes) |
| 99 | + { |
| 100 | + this.disabledGameModes = disabledGameModes; |
| 101 | + } |
| 102 | + |
| 103 | + |
| 104 | + // --------------------------------------------------------------------- |
| 105 | + // Section: Variables |
| 106 | + // --------------------------------------------------------------------- |
| 107 | + |
| 108 | + @ConfigComment("") |
| 109 | + @ConfigComment("This allows to define timeout in seconds on which fly mode will be disabled") |
| 110 | + @ConfigComment("when player leaves its island. Zero or negative number will result in immediate") |
| 111 | + @ConfigComment("fly mode disabling. Players with the bskyblock.island.flybypass permission (or similar)") |
| 112 | + @ConfigComment("can fly outside the island boundary.") |
| 113 | + @ConfigEntry(path = "fly-timeout") |
| 114 | + private int flyTimeout = 5; |
| 115 | + |
| 116 | + @ConfigComment("") |
| 117 | + @ConfigComment("This allows to change if players should lose their fly mode if they quit server.") |
| 118 | + @ConfigEntry(path = "logout-disable-fly") |
| 119 | + private boolean flyDisableOnLogout = false; |
| 120 | + |
| 121 | + @ConfigComment("") |
| 122 | + @ConfigComment("This list stores GameModes in which islandFly addon should not work.") |
| 123 | + @ConfigComment("To disable addon it is necessary to write its name in new line that starts with -. Example:") |
| 124 | + @ConfigComment("disabled-gamemodes:") |
| 125 | + @ConfigComment(" - BSkyBlock") |
| 126 | + @ConfigEntry(path = "disabled-gamemodes") |
| 127 | + private Set<String> disabledGameModes = new HashSet<>(); |
127 | 128 | }
|
0 commit comments