28
28
import com .eternalcode .core .command .implementations .SkullCommand ;
29
29
import com .eternalcode .core .command .implementations .SpeedCommand ;
30
30
import com .eternalcode .core .command .implementations .StonecutterCommand ;
31
+ import com .eternalcode .core .command .implementations .TeleportCommand ;
31
32
import com .eternalcode .core .command .implementations .WhoIsCommand ;
32
33
import com .eternalcode .core .command .implementations .WorkbenchCommand ;
33
34
import com .eternalcode .core .configuration .ConfigurationManager ;
@@ -79,12 +80,12 @@ public void onEnable() {
79
80
80
81
this .configurationManager = new ConfigurationManager (this );
81
82
this .configurationManager .loadConfigs ();
82
- MessagesConfiguration messagesConfiguration = configurationManager .getMessagesConfiguration ();
83
+ MessagesConfiguration config = configurationManager .getMessagesConfiguration ();
83
84
84
85
// bStats metrics
85
86
// TODO: Jakieś ładne custom charty
86
- //Metrics metrics = new Metrics(this, 13026);
87
- //metrics.addCustomChart(new SingleLineChart("users", () -> 0));
87
+ // Metrics metrics = new Metrics(this, 13026);
88
+ // metrics.addCustomChart(new SingleLineChart("users", () -> 0));
88
89
89
90
// Services
90
91
this .userService = new UserService ();
@@ -94,7 +95,7 @@ public void onEnable() {
94
95
.bind (resources -> resources .on (ConfigurationManager .class ).assignInstance (configurationManager ))
95
96
.bind (new CommandInfoBind ())
96
97
.registerDefaultComponents ()
97
- .permissionHandler ((message , permission ) -> message .getCommandSender ().sendMessage (ChatUtils .color (messagesConfiguration .permissionMessage .replace ("{PERMISSION}" , permission ))))
98
+ .permissionHandler ((message , permission ) -> message .getCommandSender ().sendMessage (ChatUtils .color (config .permissionMessage .replace ("{PERMISSION}" , permission ))))
98
99
.commands (
99
100
AlertCommand .class ,
100
101
AnvilCommand .class ,
@@ -120,7 +121,8 @@ public void onEnable() {
120
121
WhoIsCommand .class ,
121
122
WorkbenchCommand .class ,
122
123
EternalCoreCommand .class ,
123
- ScoreboardCommand .class
124
+ ScoreboardCommand .class ,
125
+ TeleportCommand .class
124
126
).install ();
125
127
126
128
// Register events
0 commit comments