Ali Moghnieh
3c18efc4a6
Fix /tpaccept
timing out requests too soon.
2016-11-23 13:41:11 +00:00
Ali Moghnieh
ad94cca95b
Check for timeout in /tpa
and /tpaccept
. Fixes #818 .
...
This commit adds a method called hasOutstandingTeleportRequest() in IUser - implemented fully in User.
2016-11-22 20:39:31 +00:00
vemacs
1d20184f0b
Implement #70 (untested), TODO assign default permissions
2015-07-03 13:07:25 -04:00
drtshock
dde0b20775
Reformat
2015-04-14 23:06:16 -05:00
KHobbits
36e580474f
Converted emulated player class calls to use base class.
2014-04-13 01:01:49 +01:00
FearFree
5724c0c8df
Future Java versions may not support _ as identifier.
2014-03-22 16:08:11 +11:00
Iaccidentally
18b31a7e50
[FIX] Print a proper error when using tpaccept with no requester
2014-02-01 16:49:54 -05:00
KHobbits
eee18f40be
Pass optional location parameters to teleport TL keys.
2014-01-12 01:23:12 +00:00
KHobbits
6f85761f7f
Extract CommandSender to CommandSource, this should prevent Ess user object leaks.
2013-10-16 21:05:33 +01:00
KHobbits
59b501b2b1
Clean Imports
2013-10-11 03:44:41 +01:00
KHobbits
7401608cc5
The /tpahere command now stores the location of 'here' rather than using the current players location.
...
Cleanup teleport logic - This also fixes exploiting /tpahere to get accesses to restricted areas.
2013-08-11 16:37:21 +01:00
KHobbits
1abacf00df
More cleanup
2013-07-07 13:02:40 +01:00
KHobbits
3d29248ace
Misc cleanup
2013-07-07 12:38:01 +01:00
Iaccidentally
f1eae9be6f
Cleanup imports
2013-06-11 20:45:12 +01:00
KHobbits
19451c151e
Show teleport cancel messages to tpa user.
2013-05-26 16:49:11 +01:00
snowleo
555a300378
Fix cleanup to not hold Users in memory.
2013-05-03 00:12:40 +02:00
KHobbits
8f00aa5542
Warn other party when teleport fails after tpaccept.
2012-12-20 20:01:43 +00:00
KHobbits
b2d68fe213
Redundant tpaccept cost check.
2012-12-20 19:50:59 +00:00
KHobbits
fbc0f13b2b
Properly handle tphere requests so the right user is in control/charged.
2012-09-29 23:34:46 +01:00
KHobbits
4bf0d3ab24
Should fix tpaccept charge bug - needs testing
2012-09-29 03:59:31 +01:00
KHobbits
f9659dae68
Move the per world permissions:
...
essentials.world.worldname is moved to essentials.worlds.worldname
2012-09-08 22:50:20 +01:00
KHobbits
97eed50ccc
Adding world permission checks to:
...
tpaall tpall tpahere tphere tpohere
User is required to have the permission for the world he is in, before he can teleport users outside this world, to it.
2012-03-27 15:28:40 +01:00
KHobbits
3e88fb44f4
Split if tree for readability.
2012-03-20 15:03:53 +00:00
KHobbits
518b013a63
Teleport check cleanup
2012-03-20 13:26:49 +00:00
KHobbits
e11525ab64
Update offline user check.
...
Add ban reason to /seen
2012-03-12 01:00:57 +00:00
KHobbits
b0d06ce6ed
Refactoring tpaccept perm check to include tpaall.
2012-02-11 20:10:19 +00:00
Wolvereness
9efd0eb6f9
Fix exploit with /tpaccept if sender no longer has permission
2012-02-09 23:14:57 -06:00
KHobbits
6a5fefb102
Optional second argument to /tpaccept, it will only accept the request if the sender matched that string.
2012-01-29 04:59:30 +00:00
ementalo
95d5217f58
Allow timeout of /tpa /tpahere requests
...
Adds new config setting tpa-accept-cancellation
Test #781
2011-12-08 23:43:09 +00:00
ementalo
10597cec2f
Catch TeleportClause.COMMAND in the teleport listener.
...
Changed Teleport methods to pass a TeleportClause param
2011-12-07 01:12:36 +00:00
snowleo
220d68f375
Switch to the new I18n class and format cleanup of all classes
2011-11-21 02:55:26 +01:00
KHobbits
e5a8cd88f0
Code cleanup continued.
2011-11-18 17:48:49 +00:00
snowleo
d2f3bf94ae
Prevent that players are teleported to offline players using /tpa and players that lost their tpahere permission
2011-11-15 22:51:14 +01:00
KHobbits
8ff405f2fe
Adding /tpaall - Teleport here request to all players.
2011-08-17 14:19:47 +01:00
snowleo
fd2d2456b9
Renamed the Charge class to Trade
2011-06-13 15:05:11 +02:00
snowleo
117d938ac5
Several bug fixes and cleanup.
...
Found using PMD and FindBugs.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1553 e251c2fe-e539-e718-e476-b85c1f46cddb
2011-06-01 10:40:12 +00:00
snowleo
5ae48481bd
Refactoring: New Charge class
...
user.canAfford(String), user.canAfford(EssentialsCommand), user.charge(String), user.charge(EssentialsCommand) have been removed.
Teleport class has been changed to use the Charge class.
This also fixes some bugs, like the one with warp signs.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1512 e251c2fe-e539-e718-e476-b85c1f46cddb
2011-05-22 18:53:23 +00:00
snowleo
5eeb020f01
Finally all commands translated.
...
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1471 e251c2fe-e539-e718-e476-b85c1f46cddb
2011-05-15 01:30:54 +00:00
ementalo
35d03143e0
[trunk] possible tpa fix, can't test
...
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1358 e251c2fe-e539-e718-e476-b85c1f46cddb
2011-05-06 23:58:06 +00:00
snowleo
224c18348a
This is a big refactoring of the user class and more.
...
Many commands have been cleaned.
File changes:
- all user data has been moved from users.yml to userdata folder
- all files in userdata folder are lower case
Both changes should be done automatically.
Class changes:
- Moved all user data functions to UserData class
- Moved all user teleport functions to Teleport class
- Moved the user list to Essentials class
- Less static functions for better testing
- EssentialsCommand now has ess Property (Essentials class)
- New NotEnoughArgumentsException, that will show command description and syntax
New commands:
- /seen, shows the last login or logout
- /tempban, temporarily ban someone
- /tjail and mute, temporarily option added
Other changes:
- ban reason is saved
- don't show "You have xxx mail" on login, if user doesn't have essentials.mail permission
- time will be parsed: years, months (mo), weeks, days, hours, minutes (m), seconds, these can be shortened and combined, example: 2 days 5h 30m
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1300 e251c2fe-e539-e718-e476-b85c1f46cddb
2011-05-01 21:07:30 +00:00
snowleo
08041599ff
Revert to 1013
...
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1021 e251c2fe-e539-e718-e476-b85c1f46cddb
2011-03-30 12:56:34 +00:00
Zenexer
cb21bc4d7a
2.1 prerelease, part 2 of 3
...
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk2.1@1015 e251c2fe-e539-e718-e476-b85c1f46cddb
2011-03-30 04:03:21 +00:00