File tree Expand file tree Collapse file tree
src/main/java/io/github/zoltus/onecore
player/command/commands/regular Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ private void registerListeners() {
141141 //Adds listeners to list if enabled and then registers them.
142142 List <Listener > list = new ArrayList <>();
143143 if (Commands .INVSEE_ENABLED .getBoolean () || Commands .ENDER_CHEST_ENABLED .getBoolean ())
144- list .add (new InvSeeListener ());
144+ list .add (new InvseeHandler ());
145145 if (Config .TELEPORT_VELOCITY_RESET .getBoolean ())
146146 list .add (new TeleportVelocity ());
147147 if (worldGuardFlags != null )
Original file line number Diff line number Diff line change 11package io .github .zoltus .onecore .player .command .commands .regular ;
22
33import dev .jorel .commandapi .arguments .Argument ;
4- import io .github .zoltus .onecore .listeners .InvSeeListener ;
4+ import io .github .zoltus .onecore .listeners .InvseeHandler ;
55import io .github .zoltus .onecore .player .command .Command ;
66import io .github .zoltus .onecore .player .command .ICommand ;
77import io .github .zoltus .onecore .player .command .arguments .OfflinePlayerArgument ;
@@ -17,7 +17,7 @@ public void init() {
1717 .withPermission (ENDER_CHEST_OTHER_PERMISSION .asPermission ())
1818 .executesPlayer ((sender , args ) -> {
1919 OfflinePlayer offTarget = (OfflinePlayer ) args .get (0 );
20- InvSeeListener .openInventory (sender , offTarget , true );
20+ InvseeHandler .openInventory (sender , offTarget , true );
2121 });
2222 //enderchest
2323 new Command (ENDER_CHEST_LABEL )
Original file line number Diff line number Diff line change 11package io .github .zoltus .onecore .player .command .commands .regular ;
22
3- import io .github .zoltus .onecore .listeners .InvSeeListener ;
3+ import io .github .zoltus .onecore .listeners .InvseeHandler ;
44import io .github .zoltus .onecore .player .command .Command ;
55import io .github .zoltus .onecore .player .command .ICommand ;
66import io .github .zoltus .onecore .player .command .arguments .OfflinePlayerArgument ;
@@ -19,7 +19,7 @@ public void init() {
1919 .then (new OfflinePlayerArgument ()
2020 .executesPlayer ((sender , args ) -> {
2121 OfflinePlayer offTarget = (OfflinePlayer ) args .get (0 );
22- InvSeeListener .openInventory (sender , offTarget , false );
22+ InvseeHandler .openInventory (sender , offTarget , false );
2323 })).override ();
2424 }
2525}
You can’t perform that action at this time.
0 commit comments