Commit Graph

68 Commits

Author SHA1 Message Date
Shevchik
9af92fa1e5 Use getter here 2013-12-16 23:04:33 +04:00
Shevchik
364d9dbaca Null player sit data on disable 2013-12-16 23:02:59 +04:00
Shevchik
83e3f998c6 Move player sit operations to its own class 2013-12-16 23:02:31 +04:00
Shevchik
a5086a4af5 Refactor sit allowed check, remove ability to disable inverted check. 2013-12-16 21:43:46 +04:00
Shevchik
4567af8d83 Add command restrict while sitting 2013-12-15 20:10:22 +04:00
Shevchik
ef9f272a57 Also unsit player on teleport event 2013-12-15 18:59:10 +04:00
Shevchik
03c683af03 Split event listener 2013-12-15 18:33:38 +04:00
Shevchik
adde90b9eb Change sit-block-settings to sit-blocks 2013-12-15 15:56:26 +04:00
Shevchik
8ef5f5655a Set proper position to player on leave 2013-12-15 12:40:09 +04:00
Shevchik
e6f97895c9 Remove duplicate code 2013-12-14 22:20:46 +04:00
Shevchik
917e10e6dc Remove unused variable, reorganize config 2013-12-14 22:13:19 +04:00
Shevchik
c13318bcab Remove unused import 2013-12-14 21:50:42 +04:00
Shevchik
e8f22e0d8a Remove duplicate 2013-12-14 21:46:55 +04:00
Shevchik
aa26c6626a Properly eject player
Actually i don't know why it works like that
2013-12-14 21:45:04 +04:00
Shevchik
e6d1a1ed76 Properly unsit player 2013-12-14 21:26:02 +04:00
Shevchik
ab080914b0 Fix instant unsit after sit 2013-12-14 21:16:05 +04:00
Shevchik
16a292dc6c Null loaded class on disable so plugin can be reloaded at least partially 2013-12-14 21:01:32 +04:00
Shevchik
38d9aaf229 Reposition class output 2013-12-14 17:52:50 +04:00
Shevchik
17d2554649 No longer need ProtocolLib
Tons of hacks...
2013-12-14 14:33:29 +04:00
Shevchik
04562288dd Move some methods 2013-12-13 16:50:03 +04:00
Shevchik
05c4ae027f Load config just like custom one so reload will work 2013-12-13 13:28:34 +04:00
Shevchik
9630ad0ae5 Rename option 2013-12-13 13:21:51 +04:00
Shevchik
821cdef976 Change config option name 2013-12-13 13:20:50 +04:00
Shevchik
cb0b871ea2 Remove data value from chair block, bukkit doesn't support in anymore 2013-12-13 13:19:33 +04:00
Shevchik
89309be623 Remove sitting height setting. 2013-12-13 13:17:35 +04:00
Shevchik
55c1271d65 Remove unused import 2013-12-13 12:58:25 +04:00
Shevchik
466da1c39c Update lib, fix compilation 2013-12-13 12:39:45 +04:00
Shevchik
fd5776dd15 Remove pointless things, i will rewrite config later 2013-12-11 15:53:56 +04:00
Shevchik
7dedc538a9 Remove deprecated data 2013-12-11 15:37:52 +04:00
Shevchik
d14172203c Remove sit stop location correction 2013-12-11 15:15:00 +04:00
Shevchik
bafc260459 Add worldguard integration 2013-11-22 12:41:17 +04:00
Shevchik
16fce317a1 Unsit player on teleport 2013-11-14 16:43:24 +04:00
Shevchik
184ed22422 Properly name methods 2013-09-30 12:27:16 +04:00
Shevchik
782af5a9da Remove the rest of not used permissions 2013-09-30 11:27:31 +04:00
Shevchik
ddb244d477 Prevent NaN inside arrow 2013-09-30 11:25:33 +04:00
Shevchik
8d64101d11 Remove permissions from code, we will add them to plugin.yml 2013-09-30 11:21:58 +04:00
Shevchik
32e28b1695 Restore player unsit locations after plugin reload 2013-09-06 03:34:01 +04:00
Shevchik
13c454775a Correctly fix sneaking problem 2013-09-04 16:05:55 +04:00
Shevchik
0f02344bba unsneak player after stopped sitting 2013-09-04 16:01:06 +04:00
Shevchik
13fe6859f8 Remove unused value 2013-09-04 15:48:48 +04:00
Shevchik
6eae9eb644 Save player location if he quit sitting on chair and restore it on join 2013-09-04 15:23:33 +04:00
Shevchik
4d9ae43d0c For now always check if sit is occupied otherwise it can glitch like hell 2013-09-03 21:25:46 +04:00
Shevchik
db0fc55432 Correctly unregister protocollib listeners on reload. 2013-09-02 20:56:28 +04:00
Shevchik
a4d4c1fe62 5 seconds is enough here 2013-09-02 10:05:57 +04:00
Shevchik
45f715b786 Add authme login location correction
If enabled it will teleport player home or to spawn if his location is
invalid.
2013-09-02 09:59:57 +04:00
Shevchik
fe81cd81e1 Correct name. COrrect resit timers. We should listen onQuit first 2013-09-02 09:39:05 +04:00
Shevchik
30d8b724b9 Finally i got this working.
No more falling through chairs. And even if you fall no Nope kick after
dismount.
2013-09-01 21:00:49 +04:00
Shevchik
f5781022b4 Just resit player every 1150 ticks, that solves this problem.
Finally!!!! This is done.
2013-09-01 19:58:23 +04:00
Shevchik
5ac4121046 Remove unused import. 2013-09-01 17:38:13 +04:00
Shevchik
661397bd46 Change logger. Correct eject on plugin disable. 2013-09-01 17:36:57 +04:00