if(c.inTrade) {
return;
}
|
Hey I am having this problem on my server where people can dupe by sending trade request, right clicking logout button, and then when the other person accepts the trade they select ok and log out. How do I make it so player are unable to log out when a trade is activated? Also would this fix be placed in public void openTrade? in the tradeandduel.java? Thanks. I also am not exactly sure how I would call the logout method in the selection so if you could show me instead of just telling me that'd be great !
if(c.inTrade) {
return;
}
Where would I place that?
Preventing a player from logging out during a trade isn't going to resolve the problem. Instead you should be ensuring that when a player does indeed logout, the trade is cancelled and any items are returned. You should also be ensuring that once a certain stage of a trade has been reached, it cannot be repeated.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |