Commit Graph

41 Commits

Author SHA1 Message Date
Dico200
d00301ccc3 Updated damnspam, made block breaking check attached levers and buttons, denied clicking now mentions timeout left, tweaked command slightly to perceive setting the timeout to 0 as removing it. 2016-05-30 15:45:05 +02:00
jomo
622971c41c Merge pull request #40 from RedstonerServer/tweaks
Fixed indentation error ll 39-41 (damnspam)
2016-04-11 15:35:43 +02:00
Pepich
46f1564af0 Fixed indentation error ll 39-41 2016-04-11 15:18:59 +02:00
psrcek
c870561f7d removed some unnecesary code
The below if statement is always true and the value of timeout_on isn't used before a return statement.
                timeout_on = False
                if timeout_on == False:
2016-03-26 21:56:10 +01:00
Dico200
6fc168eb63 Fixes, tweaks, changes 2015-05-14 02:46:54 +02:00
Dico200
9f4d096a57 Cleanup misc.py and small fix, also in damnspam 2015-05-13 21:37:53 +02:00
Dico200
1750c82208 Changed all CommandExecutor arguments
Added arguments command and label to all command executor functions,
hopefully for massive performance increase.

This is due to the following mess in PythonLoader:
``` Java
@Override
public boolean onCommand(CommandSender sender, Command command, String
label, String[] args) {
boolean result;
if (argcount == -1) {
try {
result = call(4, sender, command, label, args);
argcount = 4;
} catch (PyException e) {
//this could goof up someone ... they'll probably yell at us and
eventually read this code ... fuck them
if (e.type == Py.TypeError && (e.value.toString().endsWith("takes
exactly 3 arguments (4 given)") || e.value.toString().endsWith("takes
exactly 4 arguments (5 given)"))) {
result = call(3, sender, command, label, args);
argcount = 3;
} else if (e.type == Py.TypeError && (e.value.toString().endsWith("takes
exactly 2 arguments (4 given)") || e.value.toString().endsWith("takes
exactly 3 arguments (5 given)"))) {
result = call(2, sender, command, label, args);
argcount = 2;
} else {
throw e;
}
}
} else {
result = call(argcount, sender, command, label, args);
}
return result;
}
```

Note: Still WIP on reports - I'm working on making it keep solved
reports to fix issue 10
2015-03-19 23:51:33 +01:00
Dico200
5d23fe490b Remove annoying Damnspam plugin header
I hate plugin_header, can we maybe make it return a string which we
append the message to instead? ._.
or create like plugin_message(String pluginname, Player recipient,
String message)
2015-03-19 20:25:47 +01:00
PanFritz
496a5d2735 aparently i changed damnspam. Fixed 2015-01-16 23:45:17 +01:00
PanFritz
1515777494 added . to maths operator to support floats 2015-01-16 23:40:14 +01:00
PanFritz
d4813f7dc5 fixed indentation on damnspam 2015-01-09 22:39:20 +01:00
PanFritz
702c8ec2cf fixed indentation on damnspam 2015-01-09 22:31:28 +01:00
jomo
9a916ed2cd change indentation from 2 spaces to 4, fix #5 2015-01-06 23:38:42 +01:00
jomo
a51e715bc7 using checkargs 2015-01-02 01:19:10 +01:00
jomo
24cbcb94ab stone_button = stone button 2015-01-02 01:15:25 +01:00
shillingp
74dfdb580d Added support for damnspam -1 time arguments 2014-12-19 23:28:33 +00:00
jomo
885589eb7b repalce input with lever/button 2014-08-08 05:47:47 +02:00
jomo
5361e0d8db move line to correct position 2014-08-08 05:42:03 +02:00
jomo
d0acf1bd36 fixing endless loop 2014-08-08 05:37:45 +02:00
jomo
10d8498ce4 check if player is allowed to remove input 2014-08-08 05:14:22 +02:00
jomo
8ecae8fe23 reset changing_input 2014-08-08 04:33:27 +02:00
jomo
f751207865 allowing to update timeouts | not sure if this works ;_; 2014-08-08 04:26:16 +02:00
jomo
b1a3a92e49 apply file read/save helpers 2014-07-27 19:42:33 +02:00
jomo
8db6085d63 use uid(player) helper method 2014-07-17 22:24:45 +02:00
jomo
ebf8a22bae using is_creative helper 2014-07-17 22:13:49 +02:00
jomo
9a0779d168 more code cleanup 2014-07-16 00:49:55 +02:00
jomo
1430a454ed removed camelcase, added more coding style to readme 2014-07-16 00:33:43 +02:00
jomo
cf47df82ff check for cancelled event 2014-07-14 06:04:06 +02:00
jomo
4f13e417e9 check if player can build 2014-07-14 06:01:21 +02:00
jomo
4df5a18831 using floats for timeout 2014-07-14 05:57:27 +02:00
jomo
502aa3acc5 better message formatting 2014-07-14 05:42:44 +02:00
jomo
60c6b957f1 need more caffeine 2014-07-14 05:42:23 +02:00
jomo
c51d703d1f fix time check 2014-07-14 05:33:46 +02:00
jomo
13b4c8c115 fix plugHeader, store last time 2014-07-14 05:32:14 +02:00
jomo
7dc4d6a88c I should stop using copy pasta 2014-07-14 05:27:59 +02:00
jomo
2979ecb44e range starts at 0 2014-07-14 05:25:57 +02:00
jomo
f0e0045f70 cannot join string with ints 2014-07-14 05:24:08 +02:00
jomo
a33e9ef88f don't accept 0 args, remove try 2014-07-14 05:20:30 +02:00
jomo
7024fe4845 damnspam 2014-07-14 05:16:48 +02:00
jomo
7981591fb7 using jython 2.7b2 2014-07-13 17:10:14 +02:00
Louis Vogt
3ad9503515 Added WIP DamnSpam module 2014-07-12 01:47:32 +02:00